Skip to main content
Albero Academy

catplot & Faceting

The figure-level categorical function with built-in faceting.

Categorical Plots8 min

sns.catplot is the figure-level entry point for all categorical charts. Pick the chart with kind=, and facet across a grid with col=/row= — the same pattern as relplot and displot.

One function, many charts

kind selects the chart
sns.catplot(data=tips, x="day", y="total_bill",
kind="box", # box | violin | bar | count | strip | swarm | point
col="time", hue="sex")

Key takeaways

  1. 01catplot is the figure-level categorical function; kind= picks box/violin/bar/count/strip/swarm/point.
  2. 02col=/row= facet the categorical chart into a comparable grid.
  3. 03It mirrors relplot and displot — same faceting pattern, returns a FacetGrid.
  4. 04Use it whenever you want a faceted categorical chart.

Finished this chapter?

Mark it complete to track your progress through Seaborn.