
Matplotlib
The foundational Python plotting library, best used when you need full control over every visual element or you're building custom plot types that higher-level tools can't handle. The skill walks you through both the pyplot interface and the object-oriented API, though it strongly recommends the latter for anything beyond quick exploration. You get solid coverage of the entire plotting hierarchy (Figure, Axes, Artist objects), subplot layouts with GridSpec, and export settings for publication-quality output. Honestly, if you just need statistical plots, reach for seaborn instead. But when you're wrestling with multi-panel scientific figures or need pixel-perfect customization for a journal, this is what you use.
- skills.sh installs
- 2.3K
- GitHub stars
- 56.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add k-dense-ai/scientific-agent-skills --skill matplotlib --agent claude-codeInstalls into .claude/skills of the current project.
Files
Matplotlib
Overview
Matplotlib is Python's foundational visualization library for creating static, animated, and interactive plots. This skill provides guidance on using matplotlib effectively, covering both the pyplot interface (MATLAB-style) and the object-oriented API (Figure/Axes), along with best practices for creating publication-quality visualizations.
When to Use This Skill
This skill should be used when:
- Creating any type of plot or chart (line, scatter, bar, histogram, heatmap, contour, etc.)
- Generating scientific or statistical visualizations
- Customizing plot appearance (colors, styles, labels, legends)
- Creating multi-panel figures with subplots
- Exporting visualizations to various formats (PNG, PDF, SVG, etc.)
- Building interactive plots or animations
- Working with 3D visualizations
- Integrating plots into Jupyter notebooks or GUI applications
Setup
For project work, install Matplotlib with uv:
uv add "matplotlib==3.11.2" numpy scipy
For notebook interactivity:
uv add "matplotlib==3.11.2" ipympl
Then enable the widget backend in Jupyter with %matplotlib widget or %matplotlib ipympl.
Sponsors
Details
- Repository
- github.com/k-dense-ai/scientific-agent-skills
- Categories
- AI & Agent Building, Data Science & ML, Office & Documents
- First seen
- Jun 3, 2026
More from k-dense-ai/scientific-agent-skills
All 137- Scientific Slides2.3K
- Scikit Learn2.3K
- Scientific Schematics2.3K
- Exploratory Data Analysis2.3K
- Statsmodels2.3K
- Markitdown2.2K
- Hypothesis Generation2.2K
- Markdown Mermaid Writing2.2K
- Seaborn2.2K
- Database Lookup2.2K
- Scholar Evaluation2.2K
- Polars2.2K
- Latex Posters2.2K
- Pptx Posters2.2K
- Bgpt Paper Search2.2K
- Research Grants2.1K
- Sympy2.1K
- Pytorch Lightning2.1K
- Networkx2.1K
- Aeon2.1K
- Transformers2.1K
- Shap2.1K
- Pyzotero2.1K
- Generate Image2.1K