Matplotlib is a low level graph plotting library in python that serves as a visualization utility.
Most of the Matplotlib utilities lies under the pyplot submodule, and are usually imported under the plt alias
Now the Pyplot package can be referred to as plt
The plot() function is used to draw points (markers) in a diagram.
By default, the plot() function draws a line from point to point.
The function takes parameters for specifying points in the diagram.
Parameter 1 is an array containing the points on the x-axis.
Parameter 2 is an array containing the points on the y-axis.
Draw a line in a diagram from position (1, 3) to (2, 8) then to (6, 1) and finally to position (8, 10)
We can use any markers to mark at the points.
plt.plot(ypoints, marker = '*')
Labels:-
Not just drawing these lines through some points.
We can draw various graphs like bar graphs, pie charts, histograms, Subplots, scatter plots etc..