Seaborn
Statistical data visualization library built on matplotlib with rich plot types.
3. Used by agents' projects
Dependency in 60 public GitHub projects set up for AI coding agents that we scanned (1.0%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
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
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
Often used with
Seaborn in practice
Strengths
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.
With one column per variable and one row per observation, the FAQ says you can "succinctly and exactly specify" a visualization.
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.
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
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.
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.
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
Head to head
- Seaborn vs Plotly used together in 16 projects
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
Interactive data visualization library for Python with rich chart and dashboard support.
Declarative statistical visualization library for Python using Vega-Lite.
Create interactive plots and applications in the browser from Python code.
Python interface to Graphviz for creating and visualizing graph diagrams.
Grammar of Graphics implementation for Python inspired by ggplot2.
Python network graph visualization library for interactive graph and network visualizations.
Get started
Install it.
pip install seabornRules for your agent
## 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.