CBSE Class 12 Informatics Practices Question 145 of 147

Plotting with Pyplot — Question 28

Back to all questions
28
Question

Question 17(c)

From the following ordered set of data :

63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83

Show means in the boxplot.

Answer
import matplotlib.pyplot as plt
data = [63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83]
plt.boxplot(data, showmeans = True)
plt.show()
Output
From the following ordered set of data : Show means in the boxplot. Plotting with Pyplot, Informatics Practices Computer Science Sumita Arora Solutions CBSE Class 12