How can I use the seabed without changing the default matplotlib?

I am trying to use a sea island because of its straightening function. But I prefer the default matplotlib settings. When I import Siberian, it automatically changes the appearance of my figure.

How can I use marine functions without changing the appearance of the graphs?

+57
python matplotlib seaborn
Aug 19 '14 at 10:22
source share
2 answers

Version 0.8 (July 2017) changed this behavior. From https://seaborn.pydata.org/whatsnew.html :

By default, the (maritime) style is no longer applied when imported. Now you need to explicitly call set () or one or more set_style (), set_context () and set_palette (). Accordingly, the seaborn.apionly module is deprecated.

For older versions, import the following sea port:

import seaborn.apionly as sns 

and then you can use sns.distplot , but maintain the default matplotlib style + your personal rc configuration.

+74
Aug 19 '14 at
source share

According to the reset_orig documentation reset_orig restore all RC parameters to the initial settings:

 import seaborn as sns # reset RC params to original sns.reset_orig() 
+14
Dec 22 '16 at 11:25
source share



All Articles