Hi,
I want to plot the evolution of an histogram in time. It is naturally an
histogram and not a continuous distribution -the quantities on the X
axis are discrete.
Is there a function that naturally does that? I now hack it using
contourf() and creating an appropriate matrix of "squares", each square
being a sub-matrix with the value of the bar, but the contourf()
interpolation makes it look not perfect.
Thanks!
M.
Hi M. ,
I think the function imshow with kwarg interpolation='nearest' is what you are
after.
See for instance:
http://matplotlib.sourceforge.net/examples/pylab_examples/image_interp.html
bet regards Matthias
ยทยทยท
On Saturday 13 June 2009 17:42:54 ms wrote:
Hi,
I want to plot the evolution of an histogram in time. It is naturally an
histogram and not a continuous distribution -the quantities on the X
axis are discrete.
Is there a function that naturally does that? I now hack it using
contourf() and creating an appropriate matrix of "squares", each square
being a sub-matrix with the value of the bar, but the contourf()
interpolation makes it look not perfect.
Thanks!
M.