Informatics Practices
Assertion (A): Bar graph and histogram are same.
Reasoning (R): A bar graph represents categorical data using rectangular bars. A histogram represents data which is grouped into continuous number ranges and each range corresponds to a vertical bar.
- 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
2 Likes
Answer
A is false but R is true.
Explanation
Bar charts and histograms are not the same. A bar chart or bar graph is a chart that presents categorical data with rectangular bars, where the heights or lengths of the bars are proportional to the values they represent. On the other hand, a histogram is a type of graph that provides a visual interpretation of numerical data by indicating the number of data points that lie within a range of values, and this corresponds to a vertical bar.
Answered By
3 Likes
Related Questions
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.
Assertion (A): Marker has different elements i.e., style, color, size, etc.
Reasoning (R): We can customize line of a line chart by using marker property of plot() function.
- 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.
Hindustan Departmental Stores sell items of daily use such as shampoo, soap and much more. They record the entire sale and purchase of goods month-wise so as to get a proper analysis of profit or loss in their business transactions.
Following is the csv file containing the "Company Sales Data".
Read the total profit of all months and show it using a line plot. Total profit data has been provided for each month. Generated line plot must include the following properties:
- X label name = Month Number
- Y label name = Total profit