-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Mep12 newscalarformatter demo.py #4848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mep12 newscalarformatter demo.py #4848
Conversation
horizontalalignment='center', verticalalignment='top') | ||
plt.subplot(221) | ||
plt.plot(x * 1e5 + 1e10, x * 1e-10 + 1e-5) | ||
plt.gca().xaxis.set_major_formatter(OldScalarFormatter()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you capture this as ax = plt.gca()
and then use that for the rest of the example?
ax3.yaxis.set_major_formatter(OldScalarFormatter()) | ||
|
||
ax4.plot(-x * 1e5, -x * 1e-4) | ||
ax4 = plt.gca() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need gca()
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is just a leftover from commit e35dc89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my bad!
Mep12 newscalarformatter demo.py
No description provided.