Informatics Practices
Assertion (A): A histogram is basically used to represent data provided in the form of groups spread in non-continuous ranges.
Reasoning (R): matplotlib.pyplot.hist() function is used to compute and create histogram of a variable.
- 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.
PyPlot
1 Like
Answer
A is false but R is true.
Explanation
A histogram is used to represent data provided in the form of discrete or continuous ranges. The matplotlib.pyplot.hist() function is used to compute and create a histogram of a variable.
Answered By
3 Likes
Related Questions
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.
Assertion (A): Data Visualization refers to the graphical representation of information and data using visual elements like charts, graphs and maps, etc.
Reasoning (R): To install matplotlib library, we can use the command - pip install matplotlib.
- 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): legend (labels = ['Text']) is used to give title to the graph.
Reasoning (R): plt.savefig("path") will save the current graph in png or jpeg format.
- 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): In histogram, X-axis is about bin ranges whereas Y-axis talks about frequency.
Reasoning (R): The bins (intervals) must be adjacent and are often (but are not required to be) of equal size.
- 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.