Skip to content

Instantly share code, notes, and snippets.

@macoj
Created February 24, 2019 20:46
Show Gist options
  • Save macoj/2e9569fa3f54f9933139022100820863 to your computer and use it in GitHub Desktop.
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