I have a bar plot with high resolution. Is it possible to have only the border/frame/top line of the plot like in the following ROOT plot without, i.e. without internal lines?
If I plot with facecolor='none'
or 'white'
, the plot is slashed by both vertical and horizontal lines:
The only way I can get rid of them is to make edgecolor
and facecolor
the same, but that's not the look I need...
To remove the ticks on the x-axis, tick_params() method accepts an attribute named bottom, and we can set its value to False and pass it as a parameter inside the tick_params() function. It removes the tick on the x-axis.
MatPlotLib with Python Convert the image from one color space to another. To remove grid lines, use ax. grid(False).
Found out the answer: the simplest way to achieve the desired look is to use plt.step
instead of plt.bar
, that simple. Feel shame for asking.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With