Informatics Practices
Name the various methods used with pyplot object.
PyPlot
3 Likes
Answer
The various methods used with 'pyplot' object are as follows:
- Plotting methods — plot(), scatter(), bar(), hist() and pie().
- Labeling and titling methods — xlabel(), ylabel() and title().
- Legend methods — legend().
- axis methods — axis(), xlim(), ylim(), xticks() and yticks().
- grid methods — grid().
- figure and axes methods — figure(), subplots().
- display and save methods — show(), savefig() and close().
Answered By
1 Like
Related Questions
Plot a line graph for: y2 = 4*x
Write a Python program to plot the function y = x2 using the Matplotlib library.
Write the specific purpose of the following functions used in plotting:
(a) show()
(b) legend()
Plot a histogram of a class test of 40 students based on random sets of marks obtained by the students (MM=100).