English

The function used to give title to a graph is ______.

Advertisements
Advertisements

Question

The function used to give title to a graph is ______.

Options

  • plt.show()

  • plt.plot()

  • plt.title()

  • plt.titleshow()

MCQ
Fill in the Blanks
Advertisements

Solution

The function used to give title to a graph is plt.title().

Explanation:

The title of the visualisation is specified using the title() method in the matplotlib module, which then displays the title using different Attributes.

shaalaa.com
Customisation of Plots
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×