Created
February 14, 2013 17:54
-
-
Save joninvski/4954682 to your computer and use it in GitHub Desktop.
Pyplot tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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