-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
style.use('classic') differs from defaults in 1.5 #6696
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
Comments
The background issue is that the inline backend (which is maintained by IPython/Jupyter) has different defaults than upstream. Not sure what you mean by 'vertical layout' attn @Carreau |
Thanks: Maybe there is a way to load those defaults in The vertical differences: When I compare the two saved |
This is likely because the ipython backends applies bbox_inches='tight' by On Wed, Jul 6, 2016 at 9:17 AM, Adrien F. Vincent [email protected]
|
We should probably exclude the figure face color from the classic style (as it does not get saved and should only be affecting the GUIs). If you want a 'classic-inline' style sheet, I think that should come from the jupyter team. |
Thanks for the hints, I found the wanted settings here: with another Yes, a 'classic-inline' style sheet with the said settings would be great: Can |
This overwriting of default is really annoying, and we should definitively find a better way to have our inline backend. Add to the list of things to discuss again at SciPy. Opened an IPython issue to track that. |
A workaround to preserve styling is to simply do |
I'm closing this because I don't think we want to invest any time in a better classic compatibility. Apart from that, the new 'classic' style has been around for so long that it's a de-facto standard of its own. Changing that now would also break some user code (I could even imagine that nowadays more people use the 'classic' style than the original matplotlib 1.5). |
I would like to use the classic style to make plots look the same across 1.5 and 2 and expected that
plt.style.use('classic')
would basically be a non-op on 1.5 (no visual differences), which does not seem to be the case (but is intended?).Jupyter notebook with

1.5.2
:Gray background and larger with classic style:

Trying to reproduce the defaults with rc settings:

However, the vertical layouts in [1] and [3] still differ a little bit (can they be made byte-identical?).
The text was updated successfully, but these errors were encountered: