|
From: Antonino I. <tri...@gm...> - 2007-05-11 17:05:13
|
2007/5/11, John Hunter <jd...@gm...>: > On 5/3/07, Emmanuel <emm...@fa...> wrote: > > With gnuplot one can do a plot like that : > > > > http://www.deqnotes.net/gnuplot/images/impulses.png > > > > It is using option "with impulse". > > Is there an equivalent in matplotlib? > > > In [5]: t = arange(0.0, 2.0, 0.05) > > In [6]: s = sin(2*pi*t) > > In [7]: vlines(t, 0, s) > Out[7]: <matplotlib.collections You are right! Very nice :-). ~ Antonio |