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:
- plt.show()
- plt.plot("No. of Patients")
- plt.xlabel("No. of Patients")
- 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
3 Likes
Related Questions
Which of the following is an incorrect example of savefig() function?
- plt.savefig("bar1.pdf" )
- plt.savefig("bar1.png")
- plt.savefig("bar1.eps")
- plt.savefig("bar1.ppt")
Which of the following plots makes it easy to visualize a trend in data over intervals of time.
- Box plot
- Histogram
- Line Chart
- Bar chart
Python Matplotlib …………… is used to compare different categorical or discrete variables.
- line plot
- bar graph
- histogram
- boxplot
Assertion (A): Data Visualization helps users in analyzing a large amount of data in a simple way.
Reasoning (R): Data Visualization makes complex data more accessible, understandable and usable.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.