matplotlib

Create 2D and 3D scientific visualizations with Matplotlib's plotting API.

33.0k|3.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill matplotlib-k-dense-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matplotlib
Source: https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/scientific-skills/matplotlib
Command: npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill matplotlib-k-dense-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Matplotlib provides a low-level, fully customizable plotting API for creating static, animated, and interactive visualizations across Python environments.

Core Features & Use Cases

  • Fine-grained control over Figure, Axes, spines, grid, color maps, and rcParams for publication-ready visuals.
  • 2D/3D support with both object-oriented and pyplot interfaces, enabling complex multi-panel layouts and advanced styling.
  • Export options to PNG, PDF, SVG, and interactive formats for notebooks and dashboards.
  • Use Case: A researcher crafts a journal-quality figure with multiple subplots, custom legends, precise layouts, and style compliance.

Quick Start

Install matplotlib and run a minimal script to produce a basic line plot.

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 figures with fine-grained control?

You create publication-quality scientific figures by using an object-oriented plotting API to customize Figures, Axes, spines, grids, and rcParams. This approach enables precise styling and multi-panel layouts for journal-ready visuals.

What is the best way to build complex multi-panel layouts for scientific visuals?

Building complex multi-panel layouts is best handled through the object-oriented interface, which exposes granular control over individual Axes and spines. This allows precise arrangement and styling for detailed scientific visuals.

Can I generate both 2D and 3D plots for interactive notebooks and static scripts?

Yes, you can generate 2D and 3D plots for interactive notebooks and static scripts. The framework supports various backends for interactive or static output across Python environments.

Does this plotting approach work with NumPy and SciPy for data handling and rendering?

Yes, this plotting approach works with NumPy and SciPy for data handling and rendering. These common scientific Python libraries are required dependencies for processing data before visualization.

How do I export scientific visuals to vector formats like PDF and SVG?

You export scientific visuals to vector formats like PDF and SVG by using the built-in export options. The API supports exporting to PNG, PDF, SVG, and interactive formats for notebooks and dashboards.

When do I need to use rcParams for custom styling in scientific visualization?

You need rcParams for custom styling when you require global control over figure aesthetics like color maps, grids, and spines. It allows you to enforce precise style compliance for publication-ready visuals.