没有显示Seaborn pairplot数据(Seaborn pairplot data not shown)

编程入门 行业动态 更新时间:2024-10-13 08:24:35
没有显示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.

更多推荐

本文发布于:2023-08-02 02:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1368749.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据   pairplot   Seaborn   data   shown

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!