from matplotlib import pyplot as plt
marks=[90,50,40,60,55,44,30,10,34,84]
grade_intervals=[0,35,70,100]
plt.title("Student Grades")
plt.hist(marks,grade_intervals,histtype="bar",rwidth=0.5,facecolor="blue")
plt.xticks([0,35,70,100])
plt.xlabel("Percentage")
plt.ylabel("No. of Students")
plt.show()
0 Comments:
Post a Comment