Untitled
unknown
plain_text
10 months ago
517 B
14
Indexable
import matplotlib.pyplot as plt
# Data: upper boundaries of the classes and cumulative frequencies
x = [14, 19, 29, 39, 44]
y = [3, 16, 41, 65, 70]
# Create the cumulative frequency graph
plt.figure(figsize=(8, 6))
plt.plot(x, y, marker='o', linestyle='-', color='b')
# Label the axes
plt.xlabel('Width of Books (cm)', fontsize=12)
plt.ylabel('Cumulative Frequency', fontsize=12)
# Title
plt.title('Cumulative Frequency Graph of Book Widths', fontsize=14)
# Show grid
plt.grid(True)
# Show the graph
plt.show()
Editor is loading...
Leave a Comment