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