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.