Matplotlib and seaborn 3 · seaborn

Scatter plot by group

Color points by category with hue.

sns.scatterplot(data=df, x="bill_length_mm", y="bill_depth_mm", hue="species")

Official Matplotlib and seaborn 3 documentation

More seaborn commands

All seaborn commands · Matplotlib and seaborn 3 cheatsheet

Was this page helpful?