|
From: Alan G I. <ala...@gm...> - 2011-05-27 19:03:33
|
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 |