Informatics Practices

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

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

PyPlot

3 Likes

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

3 Likes


Related Questions