Skip to main content
Albero Academy

Pair & Joint Plots

Explore all pairwise relationships, and one pair in depth.

Regression & Matrix8 min

Two figure-level "explore everything" charts. pairplot draws a grid of every variable against every other; jointplot focuses on one pair with its marginal distributions attached.

pairplot — all pairs

a scatterplot matrix
sns.pairplot(penguins, hue="species")
# off-diagonal: scatter of each variable pair; diagonal: each variable's distribution

jointplot — one pair, in depth

scatter + marginals
sns.jointplot(data=penguins, x="bill_length_mm", y="bill_depth_mm",
hue="species", kind="scatter") # kind: scatter | kde | hex | reg

Key takeaways

  1. 01pairplot draws every variable against every other — a scatterplot matrix with distributions on the diagonal.
  2. 02It's an ideal first look at a dataset; hue colours by a group/target.
  3. 03jointplot focuses on one pair with attached marginal distributions.
  4. 04jointplot kind = scatter/kde/hex/reg.

Finished this chapter?

Mark it complete to track your progress through Seaborn.