{
 "kind": "tool",
 "slug": "matplotlib",
 "path": "tools/matplotlib/",
 "name": "Matplotlib",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Charts and data visualisation",
   "tools/charts/"
  ]
 ],
 "lead": "Python library for creating static, animated and interactive plots and visualizations.",
 "chips": [
  {
   "label": "Charts and data visualisation",
   "path": "tools/charts/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install matplotlib"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/matplotlib/matplotlib"
  },
  {
   "label": "Website",
   "href": "https://matplotlib.org"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "PSF-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/matplotlib/matplotlib"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Sep 11, 2026. ",
   "src": "https://github.com/matplotlib/matplotlib"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "167 projects",
   "status": "info",
   "sub": "#2 of 95 in its category",
   "note": "Dependency in 167 public GitHub projects set up for AI coding agents that we scanned (2.7%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "2 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Matplotlib does",
   "parts": [
    {
     "t": "prose",
     "text": "Matplotlib started as a neurobiologist's tool for EEG data, and its latest bugfix notes go output path by output path: PDF, PGF, GIF via PillowWriter, Cairo, Qt and WebAgg."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Matplotlib popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "82",
       "of": "/ 100",
       "l": "Gid Score, #69 overall"
      },
      {
       "n": "51.4M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "23.5K",
       "l": "GitHub stars"
      },
      {
       "n": "167",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Matplotlib is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Matplotlib is a dependency in 167 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (10.3% of the 1,623 Python ones), #2 of 95 in charts and data visualisation.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,399; those are left out of every share on this page.",
      "The most used alternative in our scan is Seaborn (60 projects).",
      "Projects that use it most often also use NumPy (65.3%), pandas (61.1%), Pillow (42.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "91 projects, 3.0%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "72 projects, 2.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "57 projects, 2.3%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "16 projects, 4.8%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      },
      {
       "l": "12 projects, 2.6%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "11 projects, 2.3%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "11 projects, 3.9%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 65.3% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 61.1% of its projects",
       "v": "pandas",
       "path": "tools/pandas/"
      },
      {
       "l": "In 42.5% of its projects",
       "v": "Pillow",
       "path": "tools/pillow/"
      },
      {
       "l": "In 41.3% of its projects",
       "v": "scikit-learn",
       "path": "tools/scikit-learn/"
      },
      {
       "l": "In 35.3% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 33.5% of its projects",
       "v": "Seaborn",
       "path": "tools/seaborn/"
      },
      {
       "l": "In 33.5% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 32.3% of its projects",
       "v": "SciPy",
       "path": "tools/scipy/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Matplotlib in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Scripts, shells, servers and GUI toolkits",
       "v": "The README names four settings: Python scripts, Python/IPython shells, web application servers, and \"various graphical user interface toolkits.\" It also says the figures are \"publication-quality\" in hardcopy formats."
      },
      {
       "l": "Three named ways to start a figure",
       "v": "The docs front page points to three top-level interfaces: <code>pyplot.figure</code> for a figure, and <code>pyplot.subplots</code> or <code>pyplot.subplot_mosaic</code> for subplots."
      },
      {
       "l": "3.11.2 fixes span several output formats",
       "v": "The 3.11.2 notes list fixes for <code>hexbin</code> clipping in PDF output, PGF hatch linewidth and color, and incorrect glyphs in Cairo backends. The same release speeds up RGBA-stage image resampling."
      },
      {
       "l": "Install lines for pip, conda, pixi and uv",
       "v": "The docs front page gives a one-line install for each of pip, conda (conda-forge), pixi and uv. It also links to third-party distributions, nightly builds and source installs."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "uv's Python builds and the tkagg window",
       "v": "The docs warn that uv usually installs its own Python builds, and that \"only recent versions of those Python builds (August 2025) work properly with the tkagg backend\" for showing plots in a window. They suggest another supported GUI framework as an alternative, for example <code>pyside6</code>."
      },
      {
       "l": "Backend bugs fixed only in a later point release",
       "v": "3.11.2 is the second bugfix release of 3.11.x. Its fixes include crashes, frame skew in GIFs saved with <code>PillowWriter</code>, and HiDPI handling in the Qt toolbar and WebAgg embeddings. The notes do not say which earlier versions were affected."
      },
      {
       "l": "License terms are not in these sources",
       "v": "The GitHub repository metadata shows \"License None\". The docs site links to a License page under project information, but that page's text is not among the sources used here."
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Matplotlib",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/matplotlib",
        "GitHub Sponsors: https://github.com/numfocus",
        "Own page: https://numfocus.org/donate-to-matplotlib",
        "16 GitHub sponsors"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "matplotlib: Creates and customizes scientific plots with Matplotlib. Used for fine-grained control over plot elements, novel plot types, and scientific",
        "matplotlib: Low-level plotting library for full customization. Use when you need fine-grained control over every plot element, creating novel plot types"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Matplotlib vs Plotly",
         "note": "used together in 23 projects",
         "path": "tools/compare/matplotlib-vs-plotly/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "numpy: N-dimensional arrays",
        "pandas: Dataframes",
        "pillow: Image processing",
        "requests: HTTP client",
        "python-dotenv: .env config loading",
        "scikit-learn: Machine learning"
       ]
      },
      {
       "title": "More in Charts and data visualisation",
       "path": "tools/charts/",
       "items": [
        {
         "text": "Recharts",
         "path": "tools/recharts/"
        },
        {
         "text": "Chart.js",
         "path": "tools/chart-js/"
        },
        {
         "text": "Mermaid",
         "path": "tools/mermaid/"
        },
        {
         "text": "XY Flow",
         "path": "tools/xyflow/"
        },
        {
         "text": "React Chart.js 2",
         "path": "tools/react-chartjs-2/"
        },
        {
         "text": "D3.js",
         "path": "tools/d3/"
        },
        {
         "text": "Diagrams",
         "path": "tools/diagrams/"
        },
        {
         "text": "Apache ECharts",
         "path": "tools/echarts/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Matplotlib",
       "me": true,
       "facts": [
        "PSF-2.0",
        "Gid 82",
        "51.4M/wk"
       ]
      },
      {
       "name": "Seaborn",
       "why": "Statistical data visualization library built on matplotlib with rich plot types.",
       "path": "tools/seaborn/",
       "facts": [
        "BSD",
        "Gid 70",
        "7.3M/wk"
       ]
      },
      {
       "name": "Plotly",
       "why": "Interactive data visualization library for Python with rich chart and dashboard support.",
       "path": "tools/plotly/",
       "facts": [
        "MIT",
        "Gid 73",
        "15.2M/wk"
       ]
      },
      {
       "name": "Bokeh",
       "why": "Create interactive plots and applications in the browser from Python code.",
       "path": "tools/bokeh/",
       "facts": [
        "BSD-3-Clause",
        "Gid 59",
        "1.3M/wk"
       ]
      },
      {
       "name": "plotnine",
       "why": "Grammar of Graphics implementation for Python inspired by ggplot2.",
       "path": "tools/plotnine/",
       "facts": [
        "MIT",
        "Gid 41",
        "359K/wk"
       ]
      }
     ],
     "more": "Compare Matplotlib with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install matplotlib"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Matplotlib\n- Install with one of the commands the docs list: `pip install matplotlib`, `conda install -c conda-forge matplotlib`, `pixi add matplotlib` or `uv add matplotlib`.\n- When using uv with the `tkagg` window backend, follow the docs' warning: use uv 0.8.7 or newer (`uv self update`) and keep bundled Pythons current (`uv python upgrade --reinstall`).\n- If that is not possible, the docs suggest another supported GUI framework, e.g. `uv add matplotlib pyside6`.\n- Create figures through the top-level interfaces the docs name: `pyplot.figure`, `pyplot.subplots` or `pyplot.subplot_mosaic`.\n- If GIFs saved with `PillowWriter` show frame skew, or HiDPI looks wrong in the Qt toolbar or WebAgg embeddings, check the installed version. The 3.11.2 release notes list fixes for both.\n- If the project leads to a publication, add the citation the README asks for.\n- Send general questions to Discourse, which the README calls the recommended starting point.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi matplotlib"
  ],
  [
   "Category",
   "Charts and data visualisation"
  ],
  [
   "License",
   "PSF-2.0"
  ],
  [
   "Latest version",
   "v3.11.2, September 11, 2026"
  ],
  [
   "On GitHub since",
   "February 2011"
  ],
  [
   "Gid Score",
   "82.0"
  ],
  [
   "Rank in category",
   "#2 of 95"
  ],
  [
   "GitHub",
   "matplotlib/matplotlib"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [
  "Used by Event Horizon Telescope collaboration, as listed by the source; we have not checked each one."
 ],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/matplotlib.png"
}