Matplotlib skill
Create scientific plots with explicit Figure and Axes control.
Community · K-Dense| Author | K-Dense |
|---|---|
| Licence | MIT |
| Source | K-Dense-AI/scientific-agent-skills · SKILL.md on GitHub |
| Works in | Claude Code · Codex, Gemini CLI, Cursor, Copilot |
| Read from the source on |
matplotlib: Create scientific plots with explicit Figure and Axes control.
The reviewed examples target Python3.11+ and Matplotlib3.11.2.
From the skill's SKILL.md: # Matplotlib
What it does
- Choose plots, tune labels and export figures.
What you get
- PNG, PDF or SVG figures and plotting code.
When to use it
- Build a precise static scientific figure.
When not to use it
- Inventing data or assuming export proves publication quality.
What it needs
- Python, Matplotlib and NumPy/SciPy for bundled examples; pandas or ipympl for relevant routes.
Files in the skill
| File or folder | What it is for |
|---|---|
SKILL.md | Entry-point instructions and supporting workflow. |
Licence as found in the repository on 2026-11-16: MIT.
Example prompts
Type one of these after installing; naming the skill makes sure it is used.
- Create a labelled scatter plot.
- Arrange a multi-panel figure.
- Export a vector PDF.
How to install matplotlib
Prepare the workflow
Keep scripts and references. Install plotting packages separately and close figures after batch work. Library licensing is separate from the skill repository.
A skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:
Claude Code: copy the folder into your skills folder
Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills.git
mkdir -p ~/.claude/skills
cp -R scientific-agent-skills/skills/matplotlib ~/.claude/skills/Claude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /matplotlib or just describe the task.
On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.
Codex, Gemini CLI, Cursor and GitHub Copilot
These agents read the same SKILL.md folders. The one folder all four accept inside a project is .agents/skills/, so this copies the skill there:
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills.git
mkdir -p .agents/skills
cp -R scientific-agent-skills/skills/matplotlib .agents/skills/| Agent | Project folder | Your user folder | Notes |
|---|---|---|---|
| OpenAI Codex | .agents/skills/ | ~/.agents/skills/ | Type $ or run /skills to pick a skill; Codex also chooses one when your task matches. |
| Gemini CLI | .agents/skills/.gemini/skills/ | ~/.agents/skills/~/.gemini/skills/ | Or install from Git with gemini skills install <git URL> --path <folder> --consent. Google replaced Gemini CLI with Antigravity CLI for free-tier and Google One users on 18 June 2026; Antigravity uses .agents/skills/ in a project and ~/.gemini/config/skills/ for you. |
| Cursor | .agents/skills/.cursor/skills/ | ~/.agents/skills/~/.cursor/skills/ | Type / in Agent chat to pick a skill. Cursor also reads Claude Code's .claude/skills/ folders. |
| GitHub Copilot | .github/skills/.agents/skills/.claude/skills/ | ~/.copilot/skills/~/.agents/skills/ | Works in Copilot CLI, the cloud agent, and agent mode in VS Code, Visual Studio and JetBrains (IDE support depends on the version). Or run gh skill install OWNER/REPOSITORY SKILL (public preview, GitHub CLI 2.90.0 or later). |
Sources for these steps
Checked against each vendor's documentation on 2026-11-14:
Prefer explicit axes
The object-oriented interface reduces confusion from global plotting state, especially in multi-panel figures.
Inspect the export
Check labels, fonts, clipping, units and resolution in the actual output, not only the interactive preview.
Questions about matplotlib
Does copying the skill install its tools?
No. Install and configure external requirements separately.
Is full cloud execution verified here?
No. The page offers source-based local-agent guidance, not a tested cloud runtime.
Can it export vectors?
Yes. PDF and SVG are supported outputs.
Are figure sizes pixels?
No. Figure size is inches; DPI controls raster pixels.
More AI skills
Related skills
AI Infographics skill
Community · K-DenseGenerate and review raster infographics through OpenRouter.Chart Animation skill
Community · iArtTurn datasets into frame-driven animated charts and counters.Markdown Mermaid Writing skill
Community · Clayton Young / K-DenseWrite Markdown with version-aware Mermaid structural diagrams.D3 Visualization skill
Community · chrisvoncsefalvayBuild bespoke D3 charts and interactions with explicit scales, responsive sizing and cleanup.Dashmotion skill
Community · Mars (csthink)Create animated flow and architecture diagrams as self-contained HTML with structural checks.CSV Data Summarizer skill
Community · coffeefuelbumpInspect CSV structure, missing values and numeric summaries with local Python charts.