Matplotlib line chart removes internal lines

I have a high resolution graph. Is it possible to have only the border / frame / top line of the graph, as in the next ROOT graph without, i.e. No inner lines?

ROOT plot, empty inside

If I paint with facecolor='none' or 'white' , the graph breaks both vertically and horizontally:

bar plot color none

The only way to get rid of them is to make edgecolor and facecolor the same, but this is not the look I need ...

+6
source share
1 answer

Found the answer: the easiest way to achieve the desired result is to use plt.step instead of plt.bar , which is simple. Feel the shame for the question.

step plot

+8
source

All Articles