Skip to content

Instantly share code, notes, and snippets.

@joninvski
Created February 14, 2013 17:54
Show Gist options
  • Save joninvski/4954682 to your computer and use it in GitHub Desktop.
Save joninvski/4954682 to your computer and use it in GitHub Desktop.
Pyplot tips
# Force cientific notation in pyplot
formatter = ScalarFormatter()
formatter.set_scientific(True)
formatter.set_powerlimits((-3,3))
plt.axes().yaxis.set_major_formatter(formatter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment