Unfilled bar plot in matplotlib

Viewed 26202

With histograms, there's a simple built-in option histtype='step'. How do I make a bar plot in the same style?

3 Answers

I saw you found an answer on this other topic, nonetheless I have the feeling matplotlib.pyplot.step does the job too and is more direct (see here).

Edit: as requested, some sample code to illustrate usage of plt.step

import matplotlib.pyplot as plt
plt.step(list(range(10)),list(range(5))+list(range(5)))
Related