On 5/27/2011 12:28 PM, Amy Zhang wrote:
> I've created the following chart using matplotlib.pyplot.plot(). However, I 
> would like to see the data points as bars from the bottom of the graph up to 
> the points

Matplotlib supports stem plots:
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.stem
(Oddly, the only example of this seems to be a link to a Matlab plot...?
But anyway, Matplotlib works great for this.)
But if you really want, you can use vlines:
http://matplotlib.sourceforge.net/examples/pylab_examples/vline_demo.html

hth,
Alan Isaac


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to