# Seaborn — card for AI agents

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

Category: Charts and data visualisation · PyPI package `seaborn` · latest version 0.13.2 (checked 2026-11-01)
Install: `pip install seaborn`
License: BSD (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (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.

## Agent Skills for it
- seaborn from K-Dense-AI/scientific-agent-skills: `npx skills add K-Dense-AI/scientific-agent-skills --skill seaborn`
- seaborn from zLanqing/codex-claude-academic-skills: `npx skills add zLanqing/codex-claude-academic-skills --skill seaborn`

## What it is
- Seaborn is a Python plotting library for statistical graphics, built on matplotlib. The README describes "a high-level interface for drawing attractive statistical graphics." It is BSD-3-Clause licensed. The GitHub repository was created on 2012-06-18. The latest release, v0.13.2, was published on 2024-01-25. It is a minor release that adapts to upcoming pandas deprecations.
- Installation requires numpy, pandas and matplotlib. scipy and statsmodels are optional, needed only for some advanced statistical features. The FAQ says that to get the most out of seaborn, your data should be "long-form" or "tidy": each variable has its own column and each observation has its own row.
- Every plotting function is either axes-level or figure-level. Axes-level functions draw onto a single matplotlib subplot. Figure-level functions create the matplotlib figure themselves, possibly with several subplots. The docs cover relational, distribution, categorical and regression plots, multi-plot grids, theming, color palettes and a newer objects interface.

## Caveats
- 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 `native_scale`, 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 `matplotlib.pyplot.show()` yourself. The FAQ notes that this call blocks by default. Jupyter's inline and widget backends call it automatically.
- Object reprs printed in notebook cells: Plotting functions return the matplotlib or seaborn object holding the plot. Jupyter therefore prints something like `<AxesSuplot:>` above the figure, unless you assign the result or end the line with a semicolon.
- Fuzzy figures in notebooks by default: IPython's inline backend renders at a low dpi to save space. The FAQ suggests raising `figure.dpi`, or switching to retina or SVG output. Retina files take 4x the disk space. SVG file size grows with plot complexity.

## Numbers (AgentGid data)
- Gid Score: 69.6 (#404 of all tools, 9 of 95 in its category)
- Used in 60 public projects set up for AI coding agents (1.0%)
- Downloads last week: 7,281,607 (as of 2026-11-24), +4.0% over 4 weeks
- GitHub stars: 14,120 (as of 2026-11-24)
- Last push: 2026-10-08

## Often used with
Matplotlib 93.3%, pandas 86.7%, NumPy 85.0%, scikit-learn 75.0%, python-dotenv 51.7%, PyTorch 46.7%

## Checked alternatives (same job)
- Plotly: https://agentgid.com/tools/plotly/agent.md
- Altair: https://agentgid.com/tools/altair/agent.md
- Bokeh: https://agentgid.com/tools/bokeh/agent.md
- pydot: https://agentgid.com/tools/pydot/agent.md
- plotnine: https://agentgid.com/tools/plotnine/agent.md
- Pyvis: https://agentgid.com/tools/pyvis/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/seaborn/
- Repository: https://github.com/mwaskom/seaborn
- Source: https://github.com/mwaskom/seaborn#readme
- Source: https://github.com/mwaskom/seaborn
- Source: https://github.com/mwaskom/seaborn/releases
- Source: https://seaborn.pydata.org/tutorial.html
- Source: https://seaborn.pydata.org/examples/index.html
- Source: https://seaborn.pydata.org/faq

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
