matplotlib

Generate line, scatter, bar, histogram, heatmap, contour, and 3D plots with Matplotlib in Python.

94|11|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/swaruplab/operon --skill matplotlib-swaruplab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matplotlib
Source: https://github.com/swaruplab/operon/tree/main/src-tauri/protocols/matplotlib
Command: npx skills add https://github.com/swaruplab/operon --skill matplotlib-swaruplab

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Matplotlib provides comprehensive guidance for turning data into clear, publication-quality visualizations in Python, covering both the pyplot and object-oriented interfaces and a wide range of plotting techniques.

Core Features & Use Cases

  • Broad plotting capabilities including line, scatter, bar, histogram, heatmap, contour, and 3D plots, plus specialized visuals like color maps, annotations, and layouts.
  • Best practices for styling, figure layout, and saving figures across formats for reports, papers, and dashboards.
  • Use cases span exploratory data analysis in notebooks, scripted pipelines, and reproducible visualization workflows in research and production contexts.

Quick Start

Import matplotlib.pyplot as plt, create a figure and axes with plt.subplots, and plot a simple line with plt.plot(x, y).

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 plots in Python using matplotlib?

To create publication-quality plots, use matplotlib's object-oriented interface to generate figures and axes, apply styling best practices, and save outputs in high-resolution formats suitable for research papers and reports.

Can I generate 3D plots and heatmaps using matplotlib?

Yes, matplotlib supports generating 3D plots and heatmaps, alongside line, scatter, bar, histogram, and contour plots, providing comprehensive data visualization capabilities for exploratory analysis and publication.

Does this matplotlib skill work in Jupyter notebooks and scripted pipelines?

Yes, this matplotlib skill works in Jupyter notebooks for exploratory data analysis and in scripted pipelines for reproducible visualization workflows across research and production contexts.

What is the best way to style and save figures for reports in matplotlib?

The best way to style and save figures is applying matplotlib's styling best practices for layout and annotations, then exporting the figure across multiple formats to ensure reproducible visualization workflows.

Do I need numpy and scipy to use matplotlib for data visualization?

Yes, numpy and scipy are required dependencies for this matplotlib skill, providing the numerical data arrays and scientific computing foundations needed to generate data visualizations.

When should I use the object-oriented interface instead of pyplot in matplotlib?

Use the object-oriented interface instead of pyplot for advanced plotting workflows requiring precise control over figure layout, multiple axes, and specialized visuals like annotations and color maps.