Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Seaborn

Statistical data visualization library built on matplotlib with rich plot types.

Charts and data visualisationPYPI

GitHub

1. License

License from PyPI classifier.

github.com/mwaskom/seaborn

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Seaborn does

Seaborn is a statistics-first layer over matplotlib: it works best with long-form "tidy" data, and every function is either an axes-level drop-in for a matplotlib method or a figure-level function that builds a whole faceted figure.

Seaborn popularity

70 / 100
Gid Score, #404 overall
7.3M
downloads a week, pypi
14.1K
GitHub stars
60
agent projects use it
Seaborn: downloads per weekPyPI, seaborn 7,201,658
Seaborn: GitHub starsmwaskom/seaborn 14,120

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Seaborn is used

  • Seaborn is a dependency in 60 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.7% of the 1,623 Python ones), #6 of 95 in charts and data visualisation.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 578; those are left out of every share on this page.
  • The most used alternative in our scan is Plotly (56 projects).
  • Projects that use it most often also use Matplotlib (93.3%), pandas (86.7%), NumPy (85.0%).

By coding agent

33 projects, 1.1%
23 projects, 0.7%
22 projects, 0.9%
5 projects, 1.5%

Often used with

In 93.3% of its projects
In 86.7% of its projects
In 85.0% of its projects
In 75.0% of its projects
In 51.7% of its projects
In 46.7% of its projects
In 45.0% of its projects
In 43.3% of its projects

Seaborn in practice

Strengths

Drop-in subplots or whole faceted figures

The FAQ says the axes-level/figure-level split serves two goals. Axes-level functions act as "drop-in" replacements for matplotlib methods. Figure-level functions such as <code>relplot()</code> and <code>jointplot()</code> show facets or marginal distributions on separate subplots.

Tidy DataFrames map straight to plots

With one column per variable and one row per observation, the FAQ says you can "succinctly and exactly specify" a visualization.

A user guide section on statistical operations

The tutorial has a section on statistical operations. It covers estimation and error bars, measures of spread and uncertainty, error bars on regression fits, and estimating regression fits.

scipy no longer required since 0.12

The FAQ says seaborn itself is pure Python. It names scipy as the most common cause of compiled-library import errors. Since version 0.12, scipy has been an optional dependency.

Watch out for

Categorical functions treat numbers as categories

By default, categorical plots map values to 0-based integer positions, even when both x and y are numeric. The FAQ says this causes confusing behavior when you mix categorical and non-categorical plots, such as a combined bar-and-line plot. v0.13 added <code>native_scale</code>, which is False by default.

Know which kind of function you are calling

The FAQ says the axes-level/figure-level distinction does not matter much for a single function call. It becomes relevant once you customize beyond what each function's API offers. The FAQ also calls it a source of other confusion.

No plot window without plt.show()

Seaborn follows standard matplotlib practice here. In a terminal or IDE console, you may need to call <code>matplotlib.pyplot.show()</code> yourself. The FAQ notes that this call blocks by default. Jupyter's inline and widget backends call it automatically.

Install seaborn, with or without the optional stats extras

uv pip install seaborn
uv pip install seaborn[stats]

More about Seaborn

Agent Skills for it
  • seaborn: Creates Seaborn statistical visualizations with pandas integration for distributions, relationships, categorical comparisons, regression dis
  • seaborn: Statistical visualization with pandas integration. Use for quick exploration of distributions, relationships, and categorical comparisons wi

See all

Head to head
Packages around it
  • matplotlib: Plotting base seaborn builds on
  • pandas: Required DataFrame dependency
  • numpy: Required array dependency
  • scikit-learn: scikit-learn
  • python-dotenv: python-dotenv
  • pytest: Runs seaborn's own unit tests
More in Charts and data visualisation

Alternatives

Seaborn This page

BSDGid 707.3M/wk

Plotly

Interactive data visualization library for Python with rich chart and dashboard support.

MITGid 7315.2M/wk

Altair

Declarative statistical visualization library for Python using Vega-Lite.

BSDGid 679.9M/wk

Bokeh

Create interactive plots and applications in the browser from Python code.

BSD-3-ClauseGid 591.3M/wk

pydot

Python interface to Graphviz for creating and visualizing graph diagrams.

MITGid 534.8M/wk

plotnine

Grammar of Graphics implementation for Python inspired by ggplot2.

MITGid 41359K/wk

Pyvis

Python network graph visualization library for interactive graph and network visualizations.

BSDGid 46510K/wk

Compare Seaborn with another tool

Get started

Install it.

pip install seaborn

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## Seaborn
- Prefer long-form (tidy) DataFrames: one column per variable, one row per observation. The FAQ says this gets the most out of seaborn.
- Before customizing beyond a function's own API, check whether it is axes-level (e.g. `scatterplot()`, `histplot()`) or figure-level (e.g. `relplot()`, `jointplot()`).
- If plots do not appear in a terminal or IDE console, call `matplotlib.pyplot.show()`. It blocks by default, which may not be wanted, for example in a script that saves files to disk.
- In notebooks, assign the result (`ax = sns.histplot(...)`) or end the line with `;` to suppress the printed object.
- Categorical functions map values to 0-based integer positions by default, even for numeric data. On v0.13+, `native_scale=True` preserves the original properties of the grouping data.
- Install `seaborn[stats]` when you need the optional scipy/statsmodels functionality.