What is the default style name for matplotlib 2.0.0?

The default style matplotlib 2.0

differs in different ways from all previous versions.

I know I can switch to the classic style with mpl.style.use('classic')

, but how do I switch back to the new style v2.0

? The default new style name is in matplotlib.style.available

?

+3
python matplotlib


source to share


2 answers


In the API Documentation :

The style name is default

reserved to revert to the default style settings.



It is 'default'

not listed in my distribution matplotlib.style.available

, and it is not a key in matplotlib.style.library

.

+4


source to share


After applying the style in matplotlib you can revert to the defaults

plt.rcParams.update(plt.rcParamsDefault)

      



If this happens inside the jupyter notebook, you will also need to remember the backend for example. %matplotlib inline

...

+3


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics