python - 在 seaborn Pairgrid 中绘制下三角

标签 python seaborn

我对 seaborn Pairgrid 有点吃力。

假设我有一个这样的 Pairgrid:

enter image description here

如您所见,上三角图反射(reflect)了下三角图。 我希望能够只绘制下三角图,但到目前为止我发现没有简单的方法可以做到这一点。你能帮帮我吗?

最佳答案

使用 seaborn >= 0.9.1:

import seaborn as sns
iris = sns.load_dataset("iris")
sns.pairplot(iris, corner=True)

enter image description here

关于python - 在 seaborn Pairgrid 中绘制下三角,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34087126/

相关文章:

python - 用 Python 绘制二维核密度估计

python - 行的循环和 XLSXwriter 格式

python - 如何创建具有多个子图的带状图

python - 使用 np.newaxis 计算平方差之和

python - 如何为带有输入的代码编写单元测试 (Python)

python的seaborn jointplot,每个直方图的颜色不同

python - 列的简单条形图意味着使用 seaborn

python - 如何使用分类变量和数值变量绘制相关矩阵/热图

python - 值错误 : Output tensors to a Model must be the output of a TensorFlow `Layer`

python - Tensorflow - 稀疏嵌入查找仍然稀疏