在python脚本中导入seaborn搞乱情节风格

use*_*827 2 python pandas seaborn

下面附有两个图.产生它们的脚本的唯一区别是第二个有另外一行:

import seaborn as sns
Run Code Online (Sandbox Code Playgroud)

我还没有设置任何seaborn风格.即使在不使用seaborn的情节中,只是进口seaborn正在改变情节风格.有什么方法可以导入seaborn(用于其他地块),而不是为不使用它的情节改变了样式?

小智 5

检查一下

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

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