Matplotlib Pyplot: Introduction

Matplotlib is a famous python package that is used for data visualization, typically in the form of plots, graphs and charts.

Pyplot is a Matplotlib module that is used for 2-D graphics in Python. It gives a MATLAB-like interface. It is specially designed to use MATLAB with Python and has the advantage of begin free and open-source.  Pyplot works as an API for Python's Matplotlib.

There are various plots that we can utilize using Pyplot Module are Line Plot, Histogram, Scatter, 3D Plot, Image, Contour, and Polar. It is imported under the plt alias.

Each function in Pyplot is used to make some changes to the Figure. e.g., It can create a figure, plots some lines in a plotting area, decorate the plot with labels, and so on.