This is the plotting library you'll use for pretty much any data visualization in Python. The skill covers both the pyplot interface and the object-oriented API, though it strongly recommends the latter for anything beyond quick exploration. You get clear guidance on the full range of plot types (line, scatter, bar, heatmaps, 3D), subplot layouts including the flexible mosaic approach, and exporting at the right DPI for your target medium. The styling section is practical, covering colormaps, rcParams, and annotations. If you're making charts in Python, whether for notebooks, papers, or dashboards, you're probably using matplotlib, and this gives you the patterns to do it cleanly.

skills.sh installs
1.1K
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill matplotlib --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Core Concepts

The Matplotlib Hierarchy

Matplotlib uses a hierarchical structure of objects:

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Data Science & ML, Office & Documents
First seen
Apr 16, 2026

More from davila7/claude-code-templates

All 618
1mindrally avatarmatplotlib-best-practicesmindrally/skillsBest practices for Matplotlib data visualization, plotting, and creating publication-quality figures in Python1.1Kskills.sh installs
2davila7 avatarscikit-learndavila7/claude-code-templatesMachine learning in Python with scikit-learn. Use when working with supervised learning (classification, regression), unsupervised learning (clustering, dimensi944skills.sh installs
3mindrally avatardeep-learning-pythonmindrally/skillsGuidelines for deep learning development with PyTorch, Transformers, Diffusers, and Gradio for LLM and diffusion model work.878skills.sh installs
4joellewis avatarstatistics-fundamentalsjoellewis/finance_skillsApply statistical methods to financial data including descriptive statistics, covariance estimation, regression, hypothesis testing, and resampling. Use when th856skills.sh installs
5davila7 avatarml-paper-writingdavila7/claude-code-templatesWrite publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying ci416skills.sh installs
6davila7 avatarhuggingface-acceleratedavila7/claude-code-templatesSimplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device place389skills.sh installs