嗨,我以前使用过seaborn,但是最近由于某种原因,我不再可以使用sns.clustermap。我什至回到了网页,并尝试使用下面粘贴的示例代码,但是我不断收到'AttributeError:Unknown property axisbg'。
我尝试重新安装Matplotlib和seaborn,甚至尝试了conda install _library_Matplotlib
和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:未知属性axisbg图尺寸720x720(带有0个轴)”
答案 0 :(得分:1)
在这里工作,Spyder 3.3.1,Python 3.6.6,Qt 5.11.2,PyQt 5.11.3,Seaborn 0.9.0
运行:
pip install seaborn --upgrade