使用 distplot 绘制直方图
sns.distplot(a, color="red", label="100% Equities")
在 Seaborn 0.11 或更高版本下运行它会产生一个警告,即 distplot 将被弃用并使用 displot 代替。
使用displot作为直接替换(简单地将函数名称从distplot 更改为displot)不会产生相同的直方图。
什么是替换代码?
python seaborn
python ×1
seaborn ×1