user308827
user308827

Reputation: 21961

Importing seaborn in python script messing up plot style

Attached below are two plots. The only difference in the script that produced them is that the second one had an additional line:

import seaborn as sns

I am not setting any seaborn style yet. Just importing seaborn is changing plot style though, even in plots not using seaborn. Is there any way I can import seaborn (to be used in other plots), and not have the style changed for plots that do not use it?

Upvotes: 3

Views: 905

Answers (1)

Ibrahim Buamod
Ibrahim Buamod

Reputation: 114

Check this

import seaborn.apionly as sns or from seaborn.apionly import lmplot

http://stanford.edu/~mwaskom/software/seaborn/whatsnew.html

Upvotes: 6

Related Questions