Matplotlib label mark position relative to axes

I installed matplotlib to set ticks outside the chart area, but now they overlap on the corresponding shortcuts. The tick_params method does not provide any option to set the corresponding position of the labels. Therefore, I think I will have to write my own function using the text () method. Meanwhile, does anyone have a better suggestion?

+6
source share
1 answer

To shift tick marks relative to the used tick panel. Compare

ax.tick_params(direction='out', pad=5) plt.draw() 

with

 ax.tick_params(direction='out', pad=15) plt.draw() 
+6
source

All Articles