Python Expt 9 SBM
Python Expt 9 SBM
EXPERIMENT NO.09
Matplotlib is a Python library that helps in visualizing and analyzing the data and helps in better understanding of the data with the help of
graphical, pictorial visualizations that can be simulated using the matplotlib library. Matplotlib is a comprehensive library for static, animated
and interactive visualizations.
Step 1: Open command manager (just type “cmd” in your windows start search bar)
Step 2: Type the below command in the terminal.
cd Desktop
Output
Method Description
It creates the plot at the background of computer, it doesn’t displays it. We can also add a label as it’s argument that by
plot()
what name we will call this plot – utilized in legend()
gca() It helps to get access over the all the four axes of the graph
Pass a list as it’s arguments of all the plots made, if labels are not explicitly specified then add the values in the list in the
gca().legend()
same order as the plots are made