首页 > 解决方案 > seaborn 聚类的问题

问题描述

嗨,我以前使用过 seaborn,但最近由于某种原因我不能再使用 sns.clustermap。我什至回到网页并尝试使用他们粘贴在下面的示例代码,但我不断收到 'AttributeError: Unknown property axisbg' 。我尝试过重新安装 Matplotlib 和 seaborn,甚至尝试过conda install _library_Matplotliband conda install _library_seaborn,但没有任何效果。我什至试图改变我的python版本。

python 3.6.6 版 matplotlib 3.0.2 版 seaborn 0.7.1 版

import seaborn as sns; sns.set(color_codes=True)
iris = sns.load_dataset("iris")
species = iris.pop("species")
g = sns.clustermap(iris)

错误:'AttributeError: Unknown property axisbg Figure size 720x720 with 0 Axes'

标签: pythoncluster-computingseaborn

解决方案


在这里工作,Spyder 3.3.1、Python 3.6.6、Qt 5.11.2、PyQt 5.11.3、Seaborn 0.9.0

跑:

pip install seaborn --upgrade

推荐阅读