Page 63 - IPP-12-2024
P. 63
plt.legend()
plt.grid(True)
plt.show()
elif vis_choice ==2:
while(True):
print("Vertical Bar Plot Sub Menu")
print("1. Subject wise Highest
marks")
print("2. Subject wise number of
students appeared")
print("3. Subject wise Average
marks")
print("4. Subject wise comparison
of percentage of A1 & A2")
print("5. Exit")
chbar=int(input("Enter choice"))
if chbar==1:
plt.bar(result.index,result['Highest'],label="Highest Marks",
color="green")
plt.title("SUBJECTWISE HIGHEST
MARKS")
plt.xlabel("SUBJECTS")
plt.ylabel("HIGHEST MARKS")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()
elif chbar==2:
plt.bar(result.index,result['Appeared'],label="Number of
students appeared",color="yellow")
plt.title("SUBJECTWISE NUMBER
OF STUDENTS APPEARED")