Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
scientific notation matplotlib
ax.yaxis.set_major_formatter(ScalarFormatter(useMathText=True))
ax.ticklabel_format(style='sci', axis='y', scilimits=(0, 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment