With histograms, there's a simple built-in option histtype='step'. How do I make a bar plot in the same style?
With histograms, there's a simple built-in option histtype='step'. How do I make a bar plot in the same style?
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)))