Skip to content

adding auto ticks example - #8879

Merged
NelleV merged 1 commit into
matplotlib:masterfrom
choldgraf:example_tick
Jul 15, 2017
Merged

NelleV merged 1 commit into
matplotlib:masterfrom
choldgraf:example_tick

Conversation

@choldgraf

Copy link
Copy Markdown
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?

Comment thread examples/ticks_and_spines/auto_ticks.py Outdated
print(rc['axes.autolimit_mode'])

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

Copy link
Copy Markdown
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
3 of 4 tasks
@choldgraf

Copy link
Copy Markdown
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.

4 participants