I am looking at the iris data set (Fisher 1936). e.g. https://www.kaggle.com/uciml/iris/downloads/Iris.csv
Creating the seaborn pairplot with the arguments
sns.pairplot(iris.drop("Id", axis=1), diag_kind="kde", hue="Species")
return a pairplot with kde charts on the diagonals; However, I am missing the different colors for the different species in the kde plots, the scatters are fine & colorful.
My result is inline with the seaborn docs. http://seaborn.pydata.org/tutorial/axis_grids.html
g = sns.pairplot(iris, hue="species", palette="Set2", diag_kind="kde", size=2.5)
But there a several different examples published showong the colors. e.g. http://www.arunprakash.org/2017/06/data-visualisation-seaborn.html
sns.pairplot(iris, hue='Species', diag_kind='kde', size=2);
or https://www.kaggle.com/benhamner/python-data-visualizations
sns.pairplot(iris.drop("Id", axis=1), hue="Species", size=3, diag_kind="kde")
Has there been a recent change in the seaborn API (ver 0.8.0) ? Have the colors been removed on purpose? Is there a kw to the show them again?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…