Informatics Practices
Given the following set of data:
Weight measurements for 14 values of muffins (in grams)
78, 72, 69, 81, 63, 67, 65
79, 74, 71, 83, 71, 79, 80
Create a cumulative histogram from the above data.
PyPlot
2 Likes
Answer
import matplotlib.pyplot as plt
weights = [78, 72, 69, 81, 63, 67, 65, 79, 74, 71, 83, 71, 79, 80]
plt.hist(weights, cumulative = True)
plt.title('Weight Distribution of muffins')
plt.show()
Output

Answered By
1 Like
Related Questions
Given the following set of data:
Weight measurements for 14 values of muffins (in grams)
78, 72, 69, 81, 63, 67, 65
79, 74, 71, 83, 71, 79, 80Create a simple histogram from the above data.
Given the following set of data:
Weight measurements for 14 values of muffins (in grams)
78, 72, 69, 81, 63, 67, 65
79, 74, 71, 83, 71, 79, 80Create a horizontal histogram from the above data.
Given the following set of data:
Weight measurements for 14 values of muffins (in grams)
78, 72, 69, 81, 63, 67, 65
79, 74, 71, 83, 71, 79, 80Create a step type of histogram from the above data.
Kritika was asked to write the names of a few libraries in Python used for data analysis and one method of each. Help her write at least 3 libraries and their methods.