Eric Firing wrote:
Christopher Barker wrote:Has anyone used MPL to make stick plots? If so, can I borrow your code?
If no one volunteers anything, then I suggest using quiver(..., headlength=0, headwidth=0, headaxislength=0), together with quiverkey(...). This will effectively give you a stick plot, with lots of flexibility.
I've got a start enclosed. I'm having trouble with a few issues:1) I'd like to be able to pass in datetime objects for the x axis, but that doesn't seem to be supported -- is that a bug? (uncomment the datetime list comp to see the error)
2) I'm a little confused about what to put on the y axis -- stick plots often use the y axis to provide a scale for the velocites, but I can't figure out what units I'd use there -- quiver is scaling the "arrows", so I don't know what units they are in.
3) it seemed like I should be able to use angles=array to pass in the angles directly, but that didn't work for me.
It could be implemented more efficiently in any of several ways, but it would take work to do it well.
yup -- and the whole LineCollection/transforms thing confuses me anyway... Any suggestions to improve this? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov
StickPlot.py
Description: application/python
------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users