scatter() function do in Matplotlib?
scatter() function to specify the color of points?
color='red'colors='blue'color='bar'color='green'bar() function require as its arguments in Matplotlib?
plot() function?
grid=Truegrid()add_grid()plt.grid()tight_layout() function do in Matplotlib?
sharex and sharey parameters in subplots()?
savefig() if no extension is specified?
savefig() function call look like?
| Qno | Answer (Option with Text) |
|---|---|
| 1 | A) plot() |
| 2 | B) Creates a scatter plot |
| 3 | B) bar() |
| 4 | B) c |
| 5 | A) color='red' |
| 6 | A) It uses markers for each data point |
| 7 | B) scatter() |
| 8 | B) x values, height |
| 9 | B) Blue |
| 10 | D) plt.grid() |
| 11 | B) set_title() |
| 12 | C) set_xlabel() |
| 13 | C) set_ylabel() |
| 14 | A) legend() |
| 15 | C) By passing a list to legend() |
| 16 | C) title(fontsize=) |
| 17 | B) legend(loc=”upper left”) |
| 18 | B) xlabel() and ylabel() |
| 19 | C) xlabel(fontsize=), ylabel(fontsize=) |
| 20 | B) plt.legend() |
| 21 | B) subplots() |
| 22 | A) subplots(2, 2) |
| 23 | A) ax[0] |
| 24 | A) figsize=() |
| 25 | A) Adjusts spacing between subplots |
| 26 | A) They share the axis between subplots |
| 27 | B) savefig() |
| 28 | B) PNG |
| 29 | D) All of the above |
| 30 | A) savefig(‘plot.pdf’) |