未应用 Seaborn 样式

use*_*565 5 python-3.x seaborn

我刚刚更新了 conda 并安装了 seaborn (v0.9.0)。然后启动 jupyter notebook 并尝试绘制一个 seaborn distplot,但奇怪的是它具有 matplotlib 风格!有人可以帮我用 seaborn 情节应用 seaborn 风格吗?

import seaborn as sns
%matplotlib inline
sns.distplot(tips['total_bill'])
Run Code Online (Sandbox Code Playgroud)

具有 matplotlib 样式的 Seaborn 图

She*_*ore 6

尝试使用

sns.set()
Run Code Online (Sandbox Code Playgroud)

在%matplotlib inline如下之后,看看它是否有效。

import seaborn as sns
%matplotlib inline
sns.set()
sns.distplot(tips['total_bill'])
Run Code Online (Sandbox Code Playgroud)