Seaborn pairplot off-diagonal KDE with two classes
问题 I'm trying to look at a Seaborn pairplot for two different classes of variables and I'd like to see KDEs on the offdiagonals instead of scatterplots. The documentation has instructions on how to do a KDE for all of the data, but I want to see separate KDEs for each subclass of data. Suggestions welcome! My code looks something like this: plot = sns.pairplot( df, vars=labels, hue='has_accident', palette='Set1', diag_kind='kde', ) which results in: As you can see the data are sufficiently dense