Question:

Cancer patient analysis in the Mumbai region is to be plotted. The command used to give title to X-axis as "No. of patients" in the graph is:

Show Hint

To modify axis labels in Matplotlib, use the `plt.xlabel()` for the x-axis and `plt.ylabel()` for the y-axis.
Updated On: Apr 24, 2025
  • plt.show()
  • plt.plot("No. of patients")
  • plt.xlabel("No. of patients")
  • plt.title("No. of patients")
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

In Matplotlib, the `plt.xlabel()` function is used to set the label for the x-axis. To give the title "No. of patients" to the X-axis, the correct command is `plt.xlabel("No. of patients")`. This ensures that the x-axis is labeled correctly in the plot.
Was this answer helpful?
0
0

Questions Asked in CUET exam

View More Questions