Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 6 commits into from
Aug 3, 2015
Merged

Mep12 newscalarformatter demo.py #4848

merged 6 commits into from
Aug 3, 2015

Conversation

ericmjl
Copy link
Contributor

@ericmjl ericmjl commented Aug 1, 2015

No description provided.

horizontalalignment='center', verticalalignment='top')
plt.subplot(221)
plt.plot(x * 1e5 + 1e10, x * 1e-10 + 1e-5)
plt.gca().xaxis.set_major_formatter(OldScalarFormatter())
Copy link
Member

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()
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, my bad!

@jenshnielsen jenshnielsen added the MEP: MEP12 gallery and examples improvements label Aug 1, 2015
WeatherGod added a commit that referenced this pull request Aug 3, 2015
@WeatherGod WeatherGod merged commit 2c95107 into matplotlib:master Aug 3, 2015
@ericmjl ericmjl deleted the mep12_newscalarformatter_demo.py branch August 3, 2015 20:32
@QuLogic QuLogic added this to the v1.5.0 milestone Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MEP: MEP12 gallery and examples improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants