Untitled

mail@pastecode.io avatar
unknown
python
a month ago
564 B
5
Indexable
Never
# Data for class boundaries and cumulative frequencies for the given data
class_boundaries_2 = [66, 68, 70, 72, 74]
cumulative_frequencies_2 = [0, 7, 16, 26, 30]

# Create the plot
plt.figure(figsize=(8, 6))
plt.plot(class_boundaries_2, cumulative_frequencies_2, marker='o', linestyle='-', color='b')

# Add labels and title
plt.title("Ogive for Heights of 30 Lawyers", fontsize=14)
plt.xlabel("Height (in inches)", fontsize=12)
plt.ylabel("Cumulative Frequency", fontsize=12)

# Set grid and show the plot
plt.grid(True)
plt.xticks(class_boundaries_2)
plt.show()
Leave a Comment