-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix example for rcParams['autolimit_mode'] #20514
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
Conversation
I'm a bit confused by the last example. In the rendered docs (https://61232-1385122-gh.circle-artifacts.com/0/doc/build/html/gallery/ticks_and_spines/auto_ticks.html#sphx-glr-gallery-ticks-and-spines-auto-ticks-py) it seems that the limits don't extend to -0.5/+2.0, i.e. the closest round numbers, but if I run the example locally then they do (certainly, the ticks appear). Perhaps a bad interaction with sphinx-gallery? (ie. perhaps s-g always exits the last block before rendering the last figure?) |
cac92eb
to
b7c7352
Compare
Indeed also the second example is not rendered correctly in the docs. Both are fine when executed locally. I suspect that the problem is that sphinx-gallery has to do a |
Ah, likely yes. I think you can just set the rcParams globally for the second half of the example? |
967557d
to
f45bcfd
Compare
doc failure is real
|
f45bcfd
to
1a036aa
Compare
Fixed. |
PR Summary
plt.show()
into the context.