Page 64 - IPP-12-2024
P. 64
plt.xlabel("SUBJECTS")
plt.ylabel("NUMBER OF
STUDENTS")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()
elif chbar==3:
plt.bar(result.index,result['Average'],label="Average Marks
obtained",color="orange")
plt.title("SUBJECT WISE AVERAGE
MARKS")
plt.xlabel("SUBJECTS")
plt.ylabel("AVERAGE MARKS")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()
elif chbar==4:
plt.bar(result.index,result['Percentage'],label="Percentage of
A1 and A2",color="green")
plt.title("SUBJECT WISE
PERCENTAGE OF A1 AND A2")
plt.xlabel("SUBJECTS")
plt.ylabel("PERCENTAGE OF A1
AND A2")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()
elif chbar==5:
break