Which function is used to set a label for the y-axis in the pyplot?

16. Which function is used to set a label for the y-axis in the pyplot?

  1. ylabel()
  2. set_y()
  3. y-axis()
  4. yaxis()

Answer: A) ylabel()

Explanation:

The ylabel() function is used to set a label for the y-axis. Consider the below code statement to set the y-axis.

plt.ylabel("Year")

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.