Skip to content

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
View on GitHub

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 via rcParams
  • Enforces OO-interface use over mixed plt. and ax. calls, bbox_inches='tight' on saves, and perceptually uniform colormaps like viridis or magma in 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 -y

Installs 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

InterfaceMethodUse 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 3

Similar to Matplotlib

More Data Science & Analytics