Skip to content

What is Matplotlib?

What is Matplotlib?

Matplotlib is a popular Python package used to plot data. Matplotlib started as a project in the early 2000's partly to use Python to visualize the electronic signals in the brains of epilepsy patients. Matplotlib's creator, John D. Hunter, was a neurobiologist. He was looking for a way to replicate MATLAB's plotting capability with Python. In addition to starting Matplotlib, Dr. Hunter was part of the founding group that created Numfocus. The Numfocus group oversees some major Python projects including Matplotlib, NumPy, Pandas, and Jupyter.

Why use Matplotlib?

Matplotlib is a Python plotting library. Matplotlib is useful for creating static 2D plots, the kind of plots included in scientific publications and presentations. Almost any plot created in Microsoft Excel can be replicated with Matplotlib. Matplotlib can produce publication quality plots using Python code. These publication quality plots can be included in scientific papers, lab reports, and presentations. Matplotlib can also be used to make 3D plots and animations. There are other Python plotting libraries such as altair, ggplot, and bokeh, but Matplotlib is the most widely used.