海洋聚类的问题



嗨,我以前曾经使用过seaborn,但是最近我无法再使用snsns.clustermap。我什至回到了网页,并尝试使用下面粘贴的示例代码,但是我一直在获得" attributeError:未知属性axisbg"。我尝试重新安装Matplotlib和Seaborn,甚至尝试过conda install _library_Matplotlibconda install _library_seaborn,但没有任何效果。我什至尝试更改我的Python版本。

Python版本3.6.6Matplotlib版本3.0.2Seaborn版本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:未知属性axisbg图尺寸720x720带0轴'

在这里工作,spyder 3.3.1,python 3.6.6,qt 5.11.2,pyqt 5.11.3,seaborn 0.9.0

运行:

pip install seaborn --upgrade

最新更新