Using Seaborn charts in Matplotlib multi-chart layouts

Seaborn basics

1 min read

Published Oct 7 2025


24
0
0
0

ChartsGraphsMatplotlibNumPyPandasPythonSeabornVisualisation

Seaborn has two types of charts. Some are Axes level charts and some are Figure level charts.


Type

Description

Examples

Axes-level

Draw on a specific Matplotlib Axes — you can place them in subplots or dashboards

sns.scatterplot(), sns.lineplot(), sns.barplot(), sns.boxplot(), sns.violinplot(), sns.heatmap(), etc.

Figure-level

Create their own entire Figure (often with multiple subplots/facets) — not easily embedded in an existing layout

sns.relplot(), sns.catplot(), sns.displot(), sns.lmplot(), sns.pairplot(), sns.jointplot(), sns.clustermap()



Axes-level plots return a Matplotlib Axes object, meaning you can:

  • Combine them into multi-plot layouts
  • Add annotations, titles, or shared axes
  • Overlay or compose them with other Matplotlib plots


Example:

import seaborn as sns
import matplotlib.pyplot as plt

tips = sns.load_dataset("tips")

fig, axs = plt.subplots(2, 2, figsize=(10, 8))

sns.scatterplot(data=tips, x="total_bill", y="tip", ax=axs[0, 0])
sns.boxplot(data=tips, x="day", y="total_bill", ax=axs[0, 1])
sns.violinplot(data=tips, x="smoker", y="tip", ax=axs[1, 0])
sns.heatmap(tips.corr(numeric_only=True), annot=True, ax=axs[1, 1])

plt.tight_layout()
plt.show()

Each subplot is a Seaborn plot embedded into a Matplotlib dashboard. You can freely mix Seaborn and Matplotlib plots.


seaborn matplotlib layout example

Products from our shop

Docker Cheat Sheet - Print at Home Designs

Docker Cheat Sheet - Print at Home Designs

Docker Cheat Sheet Mouse Mat

Docker Cheat Sheet Mouse Mat

Docker Cheat Sheet Travel Mug

Docker Cheat Sheet Travel Mug

Docker Cheat Sheet Mug

Docker Cheat Sheet Mug

Vim Cheat Sheet - Print at Home Designs

Vim Cheat Sheet - Print at Home Designs

Vim Cheat Sheet Mouse Mat

Vim Cheat Sheet Mouse Mat

Vim Cheat Sheet Travel Mug

Vim Cheat Sheet Travel Mug

Vim Cheat Sheet Mug

Vim Cheat Sheet Mug

SimpleSteps.guide branded Travel Mug

SimpleSteps.guide branded Travel Mug

Developer Excuse Javascript - Travel Mug

Developer Excuse Javascript - Travel Mug

Developer Excuse Javascript Embroidered T-Shirt - Dark

Developer Excuse Javascript Embroidered T-Shirt - Dark

Developer Excuse Javascript Embroidered T-Shirt - Light

Developer Excuse Javascript Embroidered T-Shirt - Light

Developer Excuse Javascript Mug - White

Developer Excuse Javascript Mug - White

Developer Excuse Javascript Mug - Black

Developer Excuse Javascript Mug - Black

SimpleSteps.guide branded stainless steel water bottle

SimpleSteps.guide branded stainless steel water bottle

Developer Excuse Javascript Hoodie - Light

Developer Excuse Javascript Hoodie - Light

Developer Excuse Javascript Hoodie - Dark

Developer Excuse Javascript Hoodie - Dark

© 2025 SimpleSteps.guide
AboutFAQPoliciesContact