我正在尝试用 a 替换seaborn.facetgrid
a seaborn.catplot
。但是seaborn.catplot
没有正确标记Embarked = C
刻面的色调。
数据集:泰坦尼克号
e = sns.FacetGrid(data= train_df, col='Embarked')
e.map_dataframe(sns.pointplot, 'Pclass', 'Survived', hue='Sex', palette='deep')
e.add_legend()
Embarked C : 男性被正确地呈现为色调
但我的seaborn.catplot
节目:
sns.catplot(x='Pclass', y= 'Survived', hue='Sex', data=train_df, kind='point', col='Embarked')
Embarked C : 男性未正确呈现为色调