Matplotlib
A comprehensive skill catalog for AI agents
npx -y skills add G1Joshi/Agent-Skills --skill matplotlibAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 10 stars10 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Matplotlib data visualization library. Use for plotting.
SKILL.md
0.9 KB, as published. Nobody here has run it
Matplotlib
Matplotlib is the grandfather of Python plotting. It is verbose but provides infinite control.
When to Use
- Publication: Creating figures for papers (PDF/SVG).
- Customization: When you need to control every pixel.
- Backend: It powers Seaborn and Pandas plotting.
Core Concepts
Figure & Axes
The container (fig) and the plot area (ax). Always use the OO interface, not plt.plot.
Backends
Interactive (Qt, WebAgg) vs Static (Agg).
Best Practices (2025)
Do:
- Use
plt.subplots(): The Object-Oriented style. - Use
style.use('seaborn-v0_8'): Make it look decent by default.
Don't:
- Don't use
pylab: It is deprecated and pollutes namespaces.