Matplotlib skill for Claude
Creates and customizes scientific plots with Matplotlib. Used for fine-grained control over plot elements, novel plot types, and scientific workflows. Export to PNG/PDF/SVG for publication. For quick statistical plots use seaborn; for interactive plots use plotly; for publication-ready multi-panel figures with journal styling, use scientific-visualization.
Matplotlib SKILL.md
A preview of the skill file from K-Dense-AI/scientific-agent-skills (https://github.com/matplotlib/matplotlib/tree/main/LICENSE).
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
How to install Matplotlib
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit K-Dense-AI/scientific-agent-skills/skills/matplotlib#main ~/.claude/skills/matplotlibCodex
npx degit K-Dense-AI/scientific-agent-skills/skills/matplotlib#main ~/.codex/skills/matplotlibClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What does the Matplotlib skill do?
Creates and customizes scientific plots with Matplotlib. Used for fine-grained control over plot elements, novel plot types, and scientific workflows. Export to PNG/PDF/SVG for publication. For quick statistical plots use seaborn; for interactive plots use plotly; for publication-ready multi-panel figures with journal styling, use scientific-visualization.
+How do I install Matplotlib in Claude Code?
Copy the skill folder into ~/.claude/skills/matplotlib, for example with "npx degit K-Dense-AI/scientific-agent-skills/skills/matplotlib#main ~/.claude/skills/matplotlib". Claude Code loads it automatically and uses it when a task matches.
+Does Matplotlib work with ChatGPT or Codex?
Yes. Matplotlib uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/matplotlib. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Matplotlib free?
Matplotlib is published on GitHub by K-Dense-AI under the https://github.com/matplotlib/matplotlib/tree/main/LICENSE license; check the license terms before using it.