matplotlib axis label format

You should also specify axis and threshold limits:

ax1.ticklabel_format(axis="y", style="sci", scilimits=(-2,2))

This would use sci format on y axis when figures are out of the [0.01, 99] bounds.

Leave a Comment