Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

matplotlib

Skill by K-Dense-AI

Creates and customizes scientific plots with Matplotlib. It is for researchers and developers who need fine control over plot elements and export to PNG, PDF or SVG for publication.

  • Score 94
  • 59k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install matplotlib

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/matplotlib ~/.claude/skills/matplotlib

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install matplotlib in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives guidance on using Matplotlib, Python's visualization library, for static, animated and interactive plots. It covers both the pyplot interface and the object-oriented Figure and Axes API, and it recommends the object-oriented style for most work. The skill includes workflows for single plots, multi-panel subplot layouts, common plot types, styling with style sheets and rcParams, 3D plots, and saving figures.

The source targets Matplotlib 3.11.2 on Python 3.11 or later. It says the bundled scripts and examples were run with the Agg backend and PNG, PDF and SVG output. The skill is aimed at users who need publication-quality scientific figures. The description points users to seaborn for quick statistical plots, plotly for interactive plots, and scientific-visualization for journal-styled multi-panel figures.

Written from the project's SKILL.md and checked against it.

What it can do

  • Basic plot creationBuilds single plots with the object-oriented Figure and Axes interface.
  • Multiple subplotsCreates subplot grids, mosaic layouts and GridSpec arrangements.
  • Plot typesCovers line, scatter, bar, histogram, heatmap, contour, box and violin plots.
  • Styling and customizationSets colors, colormaps, style sheets, rcParams, text and annotations.
  • Saving figuresExports figures to PNG, PDF and SVG with dpi and bounding box options.
  • 3D plotsDraws 3D surfaces, scatter plots and lines using the 3d projection.
  • Colormap guidanceExplains sequential, diverging and qualitative colormaps and normalization choices.

What you need

  • Python 3.11 or later
  • Matplotlib 3.11.2
  • NumPy and SciPy for the bundled examples
  • ipympl for Jupyter widgets
  • Network access to install packages

Try asking

  • Make a two-panel figure with a line plot and a histogram and export it as PDF
  • Create a heatmap with a colorbar and save it as a 300 dpi PNG
  • Show me how to set up a 3D surface plot with labeled axes in Matplotlib

Good to know

  • GUI windows, Jupyter widgets and external LaTeX were not exercised in the source's testing.
  • Fragment examples assume imports and named data and must be adapted and validated before use.
  • Older code may need changes for the Matplotlib 3.11 API, such as tick_labels for box plots.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/matplotlib/SKILL.md, skills/matplotlib/scripts/plot_template.py, skills/matplotlib/scripts/style_configurator.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Write Bash

  • SKILL.md16 KB
  • references/api_reference.md12 KB
  • references/common_issues.md15 KB
  • references/plot_types.md14 KB
  • references/styling_guide.md16 KB
Show all 7 files
  • scripts/plot_template.py12 KB
  • scripts/style_configurator.py14 KB

Alternatives to matplotlib

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

matplotlib: common questions

Does Matplotlib need an API key or account?

The source says local plotting needs no credentials. Installation needs network access.

Which export formats does the skill cover?

The skill covers PNG for presentations and papers, and PDF and SVG as vector formats for publications.

How is this different from seaborn or plotly?

The description says to use seaborn for quick statistical plots and plotly for interactive plots. Matplotlib is for fine-grained control and novel plot types.

How do I install matplotlib?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is matplotlib free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is matplotlib safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to matplotlib?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

matplotlib Install

Add to stack

Loading.