CBSE Class 12 Informatics Practices Question 58 of 147

Plotting with Pyplot — Question 23

Back to all questions
23
Question

Question 23

The command used to give a heading to a graph is ............... .

  1. plt.show()
  2. plt.plot()
  3. plt.xlabel()
  4. plt.title()
Answer

plt.title()

Reason — The plt.title() command is used in Matplotlib's Pyplot module to give a heading or title to a graph.