Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 777
user308827 Avatar asked Jul 02 '26 10:07

user308827


1 Answers

Check this

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

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

like image 128
Ibrahim Buamod Avatar answered Jul 05 '26 02:07

Ibrahim Buamod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!