在 seaborn Pairgrid 中绘制下三角形 [英] Plot lower triangle in a seaborn Pairgrid
本文介绍了在 seaborn Pairgrid 中绘制下三角形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对 seaborn Pairgrid 有点挣扎.
I'm a bit struggling with seaborn Pairgrid.
假设我有一个这样的 Pairgrid:
Let's say I have a Pairgrid like this:
如您所见,上三角图反映了下三角图.我希望能够只绘制下三角图,但到目前为止我没有找到简单的方法来做到这一点.你能帮我吗?
As you can see, the upper triangle plots mirror the lower triangle ones. I'd like to be able to plot only the lower triangle plots, but I found no easy way so far to do it. Can you help me?
推荐答案
With seaborn >= 0.9.1:
With seaborn >= 0.9.1:
import seaborn as sns
iris = sns.load_dataset("iris")
sns.pairplot(iris, corner=True)
这篇关于在 seaborn Pairgrid 中绘制下三角形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文