3. Matplotlib
Last updated
Last updated
Matplotlib is a plotting library for the Python programming language and its numerical mathematics extension NumPy.
Pyplot
is a Matplotlib module which provides a MATLAB-like interface. Matplotlib is designed to be as usable as MATLAB, with the ability to use Python and the advantage of being free and open-source.
Matplotlib and its dependencies are available as wheel packages for macOS, Windows and Linux distributions:
Matplotlib graphs your data on Figure
s (i.e., windows), each of which can contain one or more Axes
(i.e., an area where points can be specified in terms of x-y coordinates (or theta-r in a polar plot, or x-y-z in a 3D plot, etc.). The most simple way of creating a figure with axes is using pyplot.subplots
.
let's have a deeper look at the components of a Matplotlib figure.