Informatics Practices
Python Matplotlib …………… is used to compare different categorical or discrete variables.
- line plot
- bar graph
- histogram
- boxplot
PyPlot
1 Like
Answer
bar graph
Reason — A bar graph is a type of plot that uses rectangular bars with heights or lengths proportional to the values they represent to compare different categorical or discrete variables.
Answered By
1 Like
Related Questions
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
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")
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.
Assertion (A): import matplotlib.pyplot as plt is used to import pyplot module.
Reasoning (R): Matplotlib is a Python library and pyplot is a module that contains functions to create various plots.
- 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.