【问题标题】:Why the scatter plot is not showing inside pairplot为什么散点图没有显示在pairplot内
【发布时间】:2021-03-19 20:05:01
【问题描述】:

sns.pairplot(advertising, x_vars=['TV', 'Newspaper', 'Radio'], y_vars='Sales',size=4, aspect=1, kind='scatter')
plt.show()

在这里,当我调用 pairplot 函数时,它不会显示第一个图,如果您更改 x_vars 的序列,那么它又不会显示第一个图。

但是你可以单独看到它,我怎样才能在一个pairplot中看到所有这些。

【问题讨论】:

    标签: python-3.x matplotlib seaborn data-visualization scatter-plot


    【解决方案1】:

    这是bug/feature introduced in seaborn v.0.11.0

    diag_kind=None 传递给pairplot 的解决方法

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-05
      • 2021-04-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多