Re: [Matplotlib-users] filled step plot?

2013-01-28 Thread Pierre Haessig
Hi, Le 27/01/2013 00:35, Skipper Seabold a écrit : > This has been asked before, and I just filed a ticket [1]. Can anyone > think of a better way to do something like this? The fill_between > below is pretty suboptimal IMO. I feel that adding a filled step plot would indeed be useful. Just think

Re: [Matplotlib-users] filled step plot?

2013-01-26 Thread Eduardo Bañados Torres
Hi Skipper, I think you are missing one bin in your plot... but anyway, this is how I'd do the same plot (filled step plot): import matplotlib.pyplot as plt import numpy as np t_sec = np.arange(6) velocity = np.array([24., 33., 40., 45., 48., 49.]) width = t_sec[1] - t_sec[0] plt.bar(t_sec, vel

[Matplotlib-users] filled step plot?

2013-01-26 Thread Skipper Seabold
This has been asked before, and I just filed a ticket [1]. Can anyone think of a better way to do something like this? The fill_between below is pretty suboptimal IMO. import matplotlib.pyplot as plt import numpy as np t_sec = np.arange(6) velocity = np.array([24., 33., 40., 45., 48., 49.]) fig,