The foundational Python plotting library, best used when you need full control over every visual element or you're building custom plot types that higher-level tools can't handle. The skill walks you through both the pyplot interface and the object-oriented API, though it strongly recommends the latter for anything beyond quick exploration. You get solid coverage of the entire plotting hierarchy (Figure, Axes, Artist objects), subplot layouts with GridSpec, and export settings for publication-quality output. Honestly, if you just need statistical plots, reach for seaborn instead. But when you're wrestling with multi-panel scientific figures or need pixel-perfect customization for a journal, this is what you use.

skills.sh installs
2.3K
GitHub stars
56.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --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

Setup

For project work, install Matplotlib with uv:

uv add "matplotlib==3.11.2" numpy scipy

For notebook interactivity:

uv add "matplotlib==3.11.2" ipympl

Then enable the widget backend in Jupyter with %matplotlib widget or %matplotlib ipympl.

Sponsors

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
AI & Agent Building, Data Science & ML, Office & Documents
First seen
Jun 3, 2026

More from k-dense-ai/scientific-agent-skills

All 137
1kotlin avatarkotlin-tooling-agp9-migrationkotlin/kotlin-agent-skillsMigrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+. Handles plugin replacement (com.android.kotlin.multiplatform.library), module splitt2.3Kskills.sh installs
2langchain-ai avatararxiv-searchlangchain-ai/deepagentsSearches arXiv for preprints and academic papers, retrieves abstracts, and filters by topic. Use when the user asks to find research papers, search arXiv, look 2.3Kskills.sh installs
3github avatarautomate-thisgithub/awesome-copilotAnalyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files, reconstru2.3Kskills.sh installs
4k-dense-ai avatarscientific-slidesk-dense-ai/scientific-agent-skillsBuild slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, 2.3Kskills.sh installs
5k-dense-ai avatarscikit-learnk-dense-ai/scientific-agent-skillsMachine learning in Python with scikit-learn. Use when working with supervised learning (classification, regression), unsupervised learning (clustering, dimensi2.3Kskills.sh installs
6k-dense-ai avatarscientific-schematicsk-dense-ai/scientific-agent-skillsCreate publication-quality scientific diagrams using Nano Banana 2 AI with smart iterative refinement. Uses Gemini 3.6 Flash for quality review. Only regenerate2.3Kskills.sh installs