Skip to content
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

adding auto ticks example #8879

Merged
merged 1 commit into from Jul 15, 2017
Merged

adding auto ticks example #8879

merged 1 commit into from Jul 15, 2017

Conversation

choldgraf
Copy link
Contributor

This is a quick example that demos the changes described here (based off of the question we just had at the BoF)

http://matplotlib.org/users/dflt_style_changes.html#plot-layout

The basics seem correct, but for some reason the plots aren't changing when I'm changing the rcParams. Any idea why that might be?

print(rc['axes.autolimit_mode'])

# Now change this value and see the results
rc['axes.autolimit_mode'] = 'round_numbers'
Copy link
Member

Choose a reason for hiding this comment

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

this is actually changing the rcparam, this should be

with plt.rc({'axes.autolimit_mode': 'round_numbers'}):
   ...

and similar below.

@tacaswell tacaswell added this to the 2.1 (next point release) milestone Jul 14, 2017
@choldgraf choldgraf mentioned this pull request Jul 15, 2017
4 tasks
@choldgraf
Copy link
Contributor Author

updated this so that it displays different patterns of behavior now. the example plots don't change a ton but that's probably OK as the main goal is just to expose this API so people know it's a thing they can tweak if necessary.

@NelleV NelleV merged commit 87638e3 into matplotlib:master Jul 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants