Matplotlib
Foundational Python plotting library for publication-quality 2D figures, from heatmaps and contours to multi-panel layouts.
- CCM score
- 46 of 100
- skills.sh installs
- 378
- GitHub stars
- 25
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers 2D plotting workflows (line, scatter, bar, histogram, heatmap, contour, vector field) plus basic 3D surfaces, with full control over figure elements
- Includes the object-oriented
fig, ax = plt.subplots()pattern, GridSpec layouts, colorbars, error bars, and LaTeX-formatted labels viarcParams - Enforces OO-interface use over mixed
plt.andax.calls,bbox_inches='tight'on saves, and perceptually uniform colormaps likeviridisormagmain place of Jet - Designed for scientific figures and reports that need precise styling, with Seaborn, Plotly, or Datashader suggested for stats, web dashboards, and very large datasets
Install
$ npx -y skills add tondevrel/scientific-agent-skills --skill matplotlib -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Matplotlib - Data Visualization
The most widely used library for 2D (and basic 3D) plotting. It provides full control over every element of a figure, from line styles to axis spines.
When to Use
- Creating publication-quality 2D plots (Line, Scatter, Bar, Hist)
- Visualizing scientific data (Heatmaps, Contours, Vector fields)
- Generating complex multi-panel figures
- Fine-tuning plots for papers/reports (LaTeX support)
- Building custom visualization tools and dashboards
- Plotting data directly from NumPy arrays or Pandas DataFrames
Reference Documentation
Official docs: https://matplotlib.org/stable/index.html
Gallery: https://matplotlib.org/stable/gallery/index.html (Essential for finding examples)
Search patterns: plt.subplots, ax.set_title, ax.legend, plt.savefig, matplotlib.colors
Core Principles
Two Interfaces: Choose Wisely
| Interface | Method | Use Case |
|---|---|---|
| Object-Oriented (OO) | fig, ax = plt.subplots() | Recommended. Best for complex, reproducible plots. |
| Pyplot (State-based) | plt.plot(x, y) | Quick interactive checks. Avoid for scripts/modules. |
Use Matplotlib For
Details
- Repository
- github.com/tondevrel/scientific-agent-skills
- Categories
- Data Science & Analytics, Python
- First seen
- Jun 3, 2026
Questions
What does the matplotlib skill help an agent do?
It guides the agent in creating static, animated and interactive Python visualizations, including 2D plots, heatmaps, contours, vector fields, multi-panel figures and LaTeX-formatted plots. It works from NumPy arrays and Pandas DataFrames and favors the object-oriented interface for reproducible figures.
How do I install the matplotlib skill?
Run npx -y skills add tondevrel/scientific-agent-skills --skill matplotlib -y in your project. Once installed, the agent can use the skill's guidance on publication-quality figures, colorblind-friendly colormaps and saving vector formats.
Which skills lead the matplotlib skill in its category?
The matplotlib skill sits in the Data Science & Analytics category, where azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation are also listed. It stands out for its focus on fine-grained control over every figure element, from line styles to axis spines.
Does the matplotlib skill cover interactive dashboards?
No, the skill says interactive web dashboards are better served by Plotly or Bokeh. It is suited to static publication figures, scientific plots and basic real-time plotting in scripts or notebooks.
More from tondevrel/scientific-agent-skills
All 3Similar to Matplotlib
More Data Science & Analyticsplotlydavila7/claude-code-templates1.1K installsPython charting library covering quick Plotly Express plots and fine-grained graph objects control.
data-visualizationanthropics/knowledge-work-plugins15.8K installsChart selection guidance, matplotlib, seaborn, and plotly code patterns, and design rules for accessible, publication-quality figures.
seabornk-dense-ai/scientific-agent-skills2.4K installsSeaborn statistical plotting with pandas integration, covering distributions, relationships, and categorical comparisons with explicit uncertainty handling.
scientific-visualizationk-dense-ai/scientific-agent-skills2.8K installsAccessible, publication-ready scientific figures with Matplotlib, Seaborn, or Plotly, including integrity and format audits.
econ-visualizationmeleantonio/awesome-econ-ai-stuff204 installsPublication-quality economics figures in R or Python, with consistent styling and journal-ready export.
paper-figurewanshuiyin/auto-claude-code-research-in-sleep738 installsGenerates publication-quality figures and tables from experiment results with a fixed style and export config.