CBSE Class 12 Informatics Practices Question 143 of 147

Plotting with Pyplot — Question 26

Back to all questions
26
Question

Question 17(a)

From the following ordered set of data :

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

Create a horizontal 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, vert = False)
plt.show()
Output
From the following ordered set of data : Create a horizontal boxplot. Plotting with Pyplot, Informatics Practices Computer Science Sumita Arora Solutions CBSE Class 12