3. Matplotlib
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.
1. Installing an official release
Matplotlib and its dependencies are available as wheel packages for macOS, Windows and Linux distributions:
python -m pip install -U pip
python -m pip install -U matplotlib
2. Elements of Figure
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
.

3. Check and Quickstart
import matplotlib.pyplot as plt # import the data exploration package
import numpy as np # import the data computing package
4. Content
Last updated
Was this helpful?