Informatics Practices
The command used to give a heading to a graph is …………… .
- plt.show()
- plt.plot()
- plt.xlabel()
- plt.title()
PyPlot
1 Like
Answer
plt.title()
Reason — The plt.title() command is used in Matplotlib's Pyplot module to give a heading or title to a graph.
Answered By
1 Like
Related Questions
To change the width of bars in a bar chart, which of the following arguments with a float value is used ?
- hwidth
- width
- breath
- barwidth
Which function lets you set the title of the plot ?
- title()
- plottitle()
- graphtitle()
- all of these
Which function would you use to set the limits for x-axis of the plot ?
- limits()
- xlimits()
- xlim()
- lim()
Which function is used to show legends ?
- display()
- show()
- legend()
- legends()