Informatics Practices
Sina has created ordered set of data from the number of new customers registered on his online service centre in last 20 months.
Write a program to plot this data on a filled boxplot with means shown.
PyPlot
2 Likes
Answer
import matplotlib.pyplot as plt
data = [100, 120, 95, 110, 105, 130, 115, 125, 135, 140, 120, 110, 105, 115, 130, 125, 110, 115, 120, 135]
plt.boxplot(data, patch_artist = True, showmeans = True)
plt.title('Number of New Customers Registered in Last 20 Months')
plt.show()
Output

Answered By
3 Likes
Related Questions
From the following ordered set of data :
63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83Create a horizontal boxplot.
From the following ordered set of data :
63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83Create a vertical boxplot.
From the following ordered set of data :
63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83Show means in the boxplot.
From the following ordered set of data :
63, 65, 67, 69, 69, 71, 71, 72, 74, 75, 78, 79, 79, 80, 81, 83Create boxplot without the box.