matplotlib

Create customizable scientific visualizations and export figures to PNG, PDF, or SVG.

87|7|Updated Oct 3, 2025
One-click install
npx skills add https://github.com/leonardodalinky/SciDER --skill matplotlib-leonardodalinky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matplotlib
Source: https://github.com/leonardodalinky/SciDER/tree/main/.scider/skills/matplotlib
Command: npx skills add https://github.com/leonardodalinky/SciDER --skill matplotlib-leonardodalinky

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires matplotlib, numpy, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Matplotlib centralizes the complexity of creating, customizing, and exporting scientific visualizations so users can produce clear, reproducible figures for analysis, presentation, and publication without wrestling with inconsistent defaults or layout issues.

Core Features & Use Cases

  • Flexible interfaces: Guidance for both the pyplot convenience API and the recommended object-oriented Figure/Axes API for robust, maintainable plotting code.
  • Wide plot coverage: Examples and patterns for line, scatter, bar, histogram, heatmap, contour, box/violin, polar, quiver, and 3D plots plus animations.
  • Layout and export: Best practices for subplots, GridSpec/mosaic layouts, constrained/tight layout management, and exporting to PNG/PDF/SVG with DPI and bounding controls.
  • Styling and accessibility: Advice on rcParams, style sheets, perceptually-uniform colormaps, colorblind-friendly palettes, and publication-ready typography.
  • Performance and troubleshooting: Tips for large datasets (rasterization, downsampling), interactive backends, and common issue resolutions.
  • Included tools and references: Helper scripts for templates and style configuration and reference documents covering API, plot types, styling, and common issues.

Quick Start

Generate and save a publication-quality figure using the object-oriented API and export it as a high-resolution PNG.

Frequently Asked Questions about matplotlib

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create publication-quality scientific plots for exporting to PDF or SVG?

Create publication-quality scientific plots using the object-oriented Figure/Axes API, controlling styling via rcParams and exporting to PNG, PDF, or SVG with DPI and bounding box controls for high-resolution output.

What is the best way to manage multi-panel layouts and subplots for data visualization?

Manage multi-panel layouts for data visualization using GridSpec or mosaic layouts, applying constrained or tight layout management to automatically prevent overlapping axes and labels in complex figures.

Can I generate 3D plots and animations using matplotlib?

Yes, you can generate 3D visualizations and animations using matplotlib, which provides built-in support for 3D plots alongside standard 2D plot types like line, scatter, bar, heatmap, contour, and quiver plots.

How do I style plots with colorblind-friendly palettes and perceptually-uniform colormaps?

Style plots with colorblind-friendly palettes and perceptually-uniform colormaps by applying matplotlib style sheets and configuring rcParams to ensure publication-ready typography and accessible data visualization.

Does matplotlib work with large datasets and how do I optimize plotting performance?

Matplotlib works with large datasets by applying performance optimization techniques like rasterization and downsampling, while also supporting various interactive backends to manage rendering efficiency.