ShanZhengYang
ShanZhengYang

Reputation: 17641

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

I have the following plot with sns.pairplot()

import seaborn as sns
sns.set()

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

enter image description here

The axes for D are terrible. How does one format this such that either one uses different values, or you space on the bunched-together values on the x-axis?

Upvotes: 1

Views: 996

Answers (1)

mwaskom
mwaskom

Reputation: 49022

You can access an array of matplotlib Axes at the .axes attribute of the object that pairplot returns.

Upvotes: 1

Related Questions