Skip to content

Joint Plots

What is a joint plot?

A joint plot shows:

  • A bivariate relationship (scatter/KDE/hex)
  • Marginal distributions on the sides

It’s a compact EDA tool.

Joint plot (scatter + hist)

jointplot
import seaborn as sns
 
tips = sns.load_dataset("tips")
 
sns.jointplot(data=tips, x="total_bill", y="tip", kind="scatter")
jointplot
import seaborn as sns
 
tips = sns.load_dataset("tips")
 
sns.jointplot(data=tips, x="total_bill", y="tip", kind="scatter")

Joint plot with KDE

jointplot kde
import seaborn as sns
 
tips = sns.load_dataset("tips")
 
sns.jointplot(data=tips, x="total_bill", y="tip", kind="kde", fill=True)
jointplot kde
import seaborn as sns
 
tips = sns.load_dataset("tips")
 
sns.jointplot(data=tips, x="total_bill", y="tip", kind="kde", fill=True)

Tips

  • For large data, kind="hex"kind="hex" is useful to reduce overplotting.
  • Joint plots are figure-level, so customization is slightly different.

If this helped you, consider buying me a coffee β˜•

Buy me a coffee

Was this page helpful?

Let us know how we did