如何更改 seaborn 散点图矩阵中的绘图轴,sns.pairplot()

How to alter plot axes in seaborn scatterplot matrix, sns.pairplot()

我有下面的情节 sns.pairplot()

import seaborn as sns
sns.set()

df = pd.read_csv('filename.csv')
sns.pairplot(df, hue="B")

D 的轴很糟糕。一种格式如何使其中一个使用不同的值,或者您 space 在 x 轴上的捆绑在一起的值上?

您可以在 pairplot returns.

对象的 .axes 属性处访问 matplotlib Axes 数组