Informatics Practices
Assertion. Both scatter() and plot() functions of PyPlot can create scatter charts.
Reason. The plot() function can create line charts as well as scatter charts.
- 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.
Answer
Both A and R are true and R is the correct explanation of A.
Explanation
Both the scatter() and plot() functions in Pyplot can create scatter charts. The plot() function in Pyplot can create both line charts and scatter charts. When specifying marker styles without providing a linestyle argument, the plot() function will create a scatter chart.
Related Questions
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.
Assertion. A scatter chart simply plots the data points on a chart to show the trend in the data.
Reason. A line chart connects the plotted data points with a line.
- 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. For the same sets of data, you can create various charts using plot(), scatter(), pie(), bar() and barh().
Reason. All the data sets of a plot(), scatter(), bar() cannot be used by pie() ; it will work with only a single set of data.
- 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. Five-point statistical summary of a data set can be visually represented.
Reason. The boxplot() function can plot the highest and lowest numbers of a data range, its median along with the upper and lower quartiles.
- 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.