Informatics Practices

COVID-19 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:

  1. plt.show()
  2. plt.plot("No. of Patients")
  3. plt.xlabel("No. of Patients")
  4. plt.title("No. of Patients")

PyPlot

1 Like

Answer

plt.xlabel("No. of Patients")

Reason — The plt.xlabel() function is used to set the label for the x-axis of a plot. In this case, the command plt.xlabel("No. of Patients") sets the x-axis label to "No. of Patients", which is suitable for a COVID-19 patient analysis in the Mumbai region.

Answered By

2 Likes


Related Questions