没有显示Seaborn pairplot数据(Seaborn pairplot data not shown)
我决定尝试Seaborn的pairplot,但下面的代码行( https://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.pairplot.html )给了我一个没有数据出现的情节:
>>> import matplotlib.pyplot as plt >>> import seaborn as sns; sns.set(style="ticks", color_codes=True) >>> sns.set(font='monospace') >>> iris = sns.load_dataset("iris") >>> g = sns.pairplot(iris) >>> plt.show()
我的情节发生了什么?
I decided to try out Seaborn's pairplot, but the following line of code (https://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.pairplot.html) is giving me a plot without the data appearing:
>>> import matplotlib.pyplot as plt >>> import seaborn as sns; sns.set(style="ticks", color_codes=True) >>> sns.set(font='monospace') >>> iris = sns.load_dataset("iris") >>> g = sns.pairplot(iris) >>> plt.show()What is going on with my plot?
最满意答案
您在matplotlib 1.3中遇到了一个错误。 解决方案是升级你的matplotlib。
You have encountered a bug in matplotlib 1.3. The solution is to upgrade your matplotlib.
更多推荐
发布评论