Matplotlib
Library for creating visualizations in Python
- 1 min read
- 2 chapters
- 4 labs on Lably
Learn it on Lably
- Introduction to Data and Programming with PythonClass 10 · Robotics & AI
- Internal AssessmentClass 10 · Robotics & AI
- Practical Implications of ANNClass 12 · Artificial Intelligence
- Data Visualization Using Python ProgrammingClass 11 · Artificial Intelligence
- Data Handling using PandasClass 12 · Informatics Practices
Matplotlib was originally written by John D. Hunter. Since then it has had an active development community and is distributed under a BSD-style license. Michael Droettboom was nominated as Matplotlib's lead developer shortly before John Hunter's death in August 2012 and was further joined by Thomas Caswell. Matplotlib is a NumFOCUS fiscally sponsored project.
Usage
Matplotlib is used in scientific research as a tool for data visualization. For example, the Event Horizon Telescope collaboration used Matplotlib to produce visualizations during the effort to create the first image of a black hole. Matplotlib also underpins the plotting functionality of many scientific Python libraries (for instance, pandas uses Matplotlib as its default backend for plotting). Its importance to the scientific community has been acknowledged by institutions such as NASA, which in 2024 awarded a grant to support Matplotlib’s continued development as part of an initiative to fund widely used open-source scientific software.
In education and data science, Matplotlib is frequently used to teach programming and data visualization. It integrates with Jupyter Notebook, allowing students and instructors to generate inline plots and interactively explore data within a notebook environment. Many educational institutions incorporate Matplotlib into their curricula for teaching STEM concepts, and it is widely featured in tutorials, workshops, and open online courses as a primary plotting library.
Sign in to keep reading
One more chapter is free with a Lably account.
Related projects
- DISLIN
- GNU Octave
- Plotly – for interactive, online Matplotlib and Python graphs
- PLplot – Python bindings available
- SageMath – uses
Matplotlibto draw plots

