What is the purpose of the plt.xlabel() function in Matplotlib?
Correct answer
C. To set the x-axis label
15 views
C. To set the x-axis label
15 views
plt.xlabel() sets the label of the x-axis: plt.xlabel("Year").
plt.ylabel() labels the y-axis, plt.title() sets the title and plt.show() displays the figure.
Practise more Data Science MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.