Matplotlib
Matplotlib is a charting library that helps to create 2D charts with a few lines of code. If you know what type of chart you want to display and you have the required data, then Matplotlib helps you to achieve it very easily and with minimal code. It is mainly available to use with Python scripts, but can also be used with IPython shells, Jupyter notebook, and web application servers.
Let's move ahead and start setting up the environment to use the matplotlib
library.
Installing Matplotlib
Installing Matplotlib is pretty simple. It is available to be installed using Python package manager (Pip). Let's start the installation process by executing the following command:
$ sudo pip install matplotlib
The following screenshot displays the output of this command:

Matplotlib installation using Pip
If this is a fresh copy of Python, then it will also download a few other dependency packages along with Matplotlib. Matplotlib also requires a python tkinter
package, which can be installed using...