Skip to main content
skill CX Codex

matplotlib · tondevrel — Claude Code skill: Python plots done right

A skill that tells your agent how to build matplotlib figures: line and scatter plots, heatmaps, multi-panel layouts. Useful when the data sits in NumPy or Pandas and the output goes into a paper or report.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add tondevrel/scientific-agent-skills --skill matplotlib -a claude-code
Open on GitHub

What matplotlib does

The skill walks through the object-oriented interface: fig, ax = plt.subplots(), then axis labels, legends, ticks and saving. It ships patterns for lines, scatter, bars, histograms, heatmaps with a colorbar, contours, vector fields and 3D surfaces. Multi-panel figures get their own section, from a plain plt.subplots(2, 2) grid to gridspec.GridSpec with uneven cell ratios.

Publication styling is covered too: LaTeX labels via text.usetex, global settings through plt.rcParams.update, export to .pdf or .svg. The skill advises bbox_inches='tight' on save and dpi 300+ for print, and closing figures with plt.close('all') inside loops to avoid memory leaks. On colormaps it is blunt: jet fakes gradients, so use viridis, magma or inferno.

Interactive web dashboards and quick statistical exploration are out of scope — the skill points you to Plotly, Bokeh and Seaborn instead. Very large real-time datasets are out too. Install the skill with npx skills add; matplotlib itself comes from pip install matplotlib.

What it helps with

  • plot a NumPy array without hand-tuning every axis
  • assemble a multi-panel figure with uneven cell sizes
  • export a figure to PDF without clipped labels
  • label axes with LaTeX formulas for a paper
  • draw a heatmap with a properly aligned colorbar

Example prompts for the agent

  • plot sin(x) from 0 to 10 and save it as plot.pdf
  • build a 2x2 grid with a heatmap, a histogram and an errorbar plot
  • set rcParams so axis labels render in LaTeX, then plot the data

How to install matplotlib

1Skills CLI (Vercel)

npx skills add tondevrel/scientific-agent-skills --skill matplotlib -a claude-code

2Manually: put the files in place

~/.claude/skills/matplotlib/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/matplotlib/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about matplotlib

How do I install the matplotlib skill in Claude?

Run npx skills add tondevrel/scientific-agent-skills --skill matplotlib -a claude-code. The skill file lands at ~/.claude/skills/matplotlib/SKILL.md.

What does the matplotlib skill do?

It gives the agent rules and templates for matplotlib figures: lines, scatter, histograms, heatmaps, contours, 3D surfaces and multi-panel layouts. Publication styling with LaTeX gets its own section.

What is the matplotlib skill not for?

Interactive web dashboards and fast statistical exploration — it points to Plotly, Bokeh and Seaborn for those. Very large real-time datasets fall outside it as well.

Similar skills

Everything for Science and research →

matplotlib by other authors comes first.

matplotlib K-Dense-AI A skill that guides the agent through Matplotlib: building scientific plots, tuning axes and legends, and exporting figures to PNG, PDF or SVG. CX Codex +1 2,200installs matplotlib davila7 A Claude skill for matplotlib: line plots, scatter, bar, histograms, heatmaps and 3D figures, exported to PNG, PDF or SVG. 257installs matplotlib-best-practices Mindrally A skill that feeds your agent Matplotlib conventions: plot types, axis labels, colorblind-safe palettes, PDF and PNG export. CX Codex +1 1,000installs data-analysis-jupyter Mindrally Guides AI coding agents through data analysis, visualization, and Jupyter notebook workflows with pandas, numpy, matplotlib, and seaborn. CX Codex +1 1,500installs seaborn K-Dense-AI A skill that gets your coding agent building seaborn plots from pandas DataFrames: distributions, regressions, pairplots and heatmaps, written against the current API. CX Codex +1 2,100installs academic-plotting Orchestra Research Turns a paper section or a results table into a figure: Gemini for architecture diagrams, matplotlib and seaborn for data charts. CX Codex +1 1,200installs mathmodel-figure-templates jihe520 Runs packaged Python and matplotlib scripts to generate publication-grade scientific figures. Useful when you need Taylor diagrams, ROC curves, or correlation grids quickly. CX Codex +1 1,700installs data-science-expert personamanagmentlayer A skill for analytics, statistics and visualization that kicks in when a task mentions pandas, NumPy or exploratory data analysis. CX Codex +1 573installs

From the same set3

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor