CBSE Class 12 Informatics Practices
Question 1 of 147
Plotting with Pyplot — Question 1
Back to all questions 1
Question Assertion. The matplotlib library of Python is used for data visualization.
Reason. The PyPlot interface of matplotlib library is used for 2D plotting.
- 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.
Both A and R are true and R is the correct explanation of A.
Explanation
The Matplotlib library is used for data visualization in Python, providing a variety of tools and functionalities for creating different types of plots, charts, and graphs. The Pyplot module, which is a collection of methods within the Matplotlib library, allows users to construct 2D plots easily and interactively.