Page 66 - IPP-12-2024
P. 66
plt.barh(result.index,result['Average'],label="Average Marks
obtained",color="orange")
plt.title("SUBJECT WISE AVERAGE
MARKS")
plt.ylabel("SUBJECTS")
plt.xlabel("AVERAGE MARKS")
plt.legend()
plt.show()
elif chbar==4:
plt.barh(result.index,result['Percentage'],label="Percentage
of A1 and A2",color="green")
plt.title("SUBJECT WISE PERCENTAGE
OF A1 AND A2")
plt.ylabel("SUBJECTS")
plt.xlabel("PERCENTAGE OF A1 AND
A2")
plt.legend()
plt.show()
elif chbar==5:
break
elif vis_choice==4:
while(True):
print("Histogram Sub Menu [Showing 5
bins] ")
print("1. Highest marks")
print("2. Average Marks")
print("3. Percentagae of A1 and A2")
print("4. Exit")
chbar=int(input("Enter choice"))
if chbar==1: