Untitled
unknown
plain_text
2 months ago
474 B
5
Indexable
import matplotlib.pyplot as plt # Data midpoints = [13.25, 19.5, 25.5, 31.5, 37.5, 43.5] frequencies = [12, 8, 4, 4, 2, 1] # Plot the frequency polygon plt.figure(figsize=(8,6)) plt.plot(midpoints, frequencies, marker='o', linestyle='-', color='b', label='Frequency Polygon') # Labels and title plt.title('Frequency Polygon for Given Data') plt.xlabel('Midpoint (x)') plt.ylabel('Frequency (f)') plt.grid(True) # Show the plot plt.legend() plt.show()
Editor is loading...
Leave a Comment