Tooluck logoTooluck
SKILL.md

matplotlib

Agent skill fromzLanqing/codex-claude-academic-skills

Low-level plotting library for full customization. Use when you need fine-grained control over every plot element, creating novel plot types, or integrating with specific 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 to install matplotlib

install matplotlib
# install the codex-claude-academic-skills pack with the skills CLI
npx skills add zLanqing/codex-claude-academic-skills

# or add only this skill to Claude Code: copy the folder

scientific-toolkit-skill/references/scientific-skills/matplotlib/

# into

~/.claude/skills/matplotlib/ (all projects)

.claude/skills/matplotlib/ (one project)

scientific-toolkit-skill/references/scientific-skills/matplotlib/SKILL.md

MITFull file
1# Matplotlib
2
3## Overview
4
5Matplotlib 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.
6
7## When to Use This Skill
8
9This skill should be used when:
10- Creating any type of plot or chart (line, scatter, bar, histogram, heatmap, contour, etc.)
11- Generating scientific or statistical visualizations
12- Customizing plot appearance (colors, styles, labels, legends)
13- Creating multi-panel figures with subplots
14- Exporting visualizations to various formats (PNG, PDF, SVG, etc.)
15- Building interactive plots or animations
16- Working with 3D visualizations
17- Integrating plots into Jupyter notebooks or GUI applications
18
19## Core Concepts
20
21### The Matplotlib Hierarchy
22
23Matplotlib uses a hierarchical structure of objects:
24
251. **Figure** - The top-level container for all plot elements
262. **Axes** - The actual plotting area where data is displayed (one Figure can contain multiple Axes)
273. **Artist** - Everything visible on the figure (lines, text, ticks, etc.)
284. **Axis** - The number line objects (x-axis, y-axis) that handle ticks and labels
29
30### Two Interfaces
31
32**1. pyplot Interface (Implicit, MATLAB-style)**
33```python
34import matplotlib.pyplot as plt
35
36plt.plot([1, 2, 3, 4])
37plt.ylabel('some numbers')
38plt.show()
39```
40…

Excerpt shown under the repository's MIT license.

More skills in codex-claude-academic-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates