Home »
Python »
Matplotlib MCQs
Which function is used to set a title for the plot?
17. Which function is used to set a title for the plot?
- desc()
- title()
- head()
- None of the above
Answer: B) title()
Explanation:
The title() function is used to set a title for the plot. Consider the below code statement to set a title for the plot –
plt.title("Employee Details")