Matplotlib

Matplotlib
Original authorJohn D. Hunter
DevelopersMichael Droettboom, et al.
Initial release2003; 23 years ago (2003)[1]
Stable release
3.10.9[2] Edit this on Wikidata / 23 April 2026; 43 days ago (23 April 2026)
Written inPython
Engine Cairo, Anti-Grain Geometry
Operating systemCross-platform
TypePlotting
LicenseMatplotlib license
Websitematplotlib.org Edit this at Wikidata
Repository

Matplotlib (portmanteau of MATLAB, plot, and library[3]) is a plotting library for the Python programming language and its numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK. There is also a procedural "pylab" interface based on a state machine (like OpenGL), designed to closely resemble that of MATLAB, though its use is discouraged.[4] SciPy makes use of Matplotlib.

Matplotlib was originally written by John D. Hunter. Since then it has had an active development community[5] 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[6] and was further joined by Thomas Caswell.[7][8] Matplotlib is a NumFOCUS fiscally sponsored project.[9]

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.[10] 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.[11]

A scatter plot created in Jupyter Notebook using Matplotlib

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.[12] Many educational institutions incorporate Matplotlib into their curricula for teaching STEM concepts,[13] and it is widely featured in tutorials, workshops, and open online courses as a primary plotting library.

See also

References

  1. ^ "Copyright Policy".
  2. ^ "Release 3.10.9". 23 April 2026. Retrieved 24 April 2026.
  3. ^ "History — Matplotlib 3.9.2 documentation".
  4. ^ "API Overview". matplotlib.org.
  5. ^ "Matplotlib github stats". matplotlib.org.
  6. ^ "Announcing Michael Droettboom as the lead Matplotlib developer". matplotlib.org. Archived from the original on 2020-10-27. Retrieved 2013-04-24.
  7. ^ "Matplotlib Lead Developer Explains Why He Can't Fix the Docs—But You Can – NumFOCUS". NumFOCUS. 2017-10-05. Retrieved 2018-04-11.
  8. ^ "Credits – Matplotlib 2.2.2 documentation". matplotlib.org. Retrieved 2018-04-11.
  9. ^ "NumFOCUS Sponsored Projects". NumFOCUS. Retrieved 2021-10-25.
  10. ^ "Case Study: First Image of a Black Hole". NumPy. Retrieved 22 April 2025.
  11. ^ "NASA Funds Open-Source Software Underpinning Scientific Innovation". NASA. Retrieved 22 April 2025.
  12. ^ "Interactive notebooks: Sharing the code". Nature. 18 September 2018. Retrieved 22 April 2025.
  13. ^ "Pyplot tutorial". Matplotlib. Retrieved 22 April 2025.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.