Currently my y-axis ticks all have the same number of digits after the decimal point, so the total length of the ticks is different. I want the total lengths of tick-digits to be the same. How can I do this?
My code is as follows:
ax = plt.gca()
ax.yaxis.set_major_formatter(FormatStrFormatter('%1.3f'))
Here the y-axis ticks have different total lengths:
I want the total lengths of tick-digits to be the same: