When matplotlib displays an auto-scaled graph with data that has a very small range around a larger offset, it shows that Y-axis offset at the top left-corner of the plot in exponential notation. In Linux by default that number is shown with 3 significant digits to the right of the decimal point, and in Windows by default that number is shown with 10 digits. Is this intentional? Can I change that? I will attempt to link to example plots showing what I’m talking about:
…maybe the answer is lurking somewhere in here, although if so, it doesn’t look as easy as I was hoping it would be:
To turn this off for a specific axis
ax.yaxis.get_major_formatter().set_useoffset(False)
To turn this off for all axis use
import matplotlib as mpl
mpl.rcParams['axes.formatter.useoffset'] = False
See the discussion at matplotlib.ticker — Matplotlib 3.6.0 documentation
Other useful docs: