import seaborn as sns
penguins = sns.load_dataset("penguins")
colors = {"Gentoo": '#AE5259', "Adelie": '#CF992C', "Chinstrap": '#6B9DAA'}
# 分类散点图
sns.jointplot(data=penguins, x="bill_length_mm", y="bill_depth_mm", hue="species", kind='scatter',space=0, palette=colors)
# 分类密度图
sns.jointplot(data=penguins, x="bill_length_mm", y="bill_depth_mm", hue="species", kind="kde", space=0, palette=colors)
# 蜂窝图
sns.jointplot(data=penguins, x="bill_length_mm", y="bill_depth_mm", kind="hex", space=0, color='#90639F', marginal_kws=dict(bins=20, kde=True, color='#B27293'))
# 线性回归
sns.jointplot(data=penguins, x="bill_length_mm", y="bill_depth_mm", kind="reg", space=0, color='#90639F', marginal_kws=dict(bins=30, kde=True, color='#B27293'))