Skip to content

Instantly share code, notes, and snippets.

@macoj
Created February 24, 2019 20:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save macoj/2e9569fa3f54f9933139022100820863 to your computer and use it in GitHub Desktop.
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