Page 61 - IPP-12-2024
P. 61
print("5. Exit")
vis_choice = int(input("Enter choice for
visualization: "))
if vis_choice == 5:
break
if result is None or result.empty:
print("No data to visualize")
continue
if vis_choice == 1:
while(True):
print("Line 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")
chline=int(input("Enter choice"))
if chline==5:
break
if chline==1:
plt.plot(result.index,result['Highest'],label="Highest Marks")
plt.title("SUBJECTWISE HIGHEST
MARKS")
plt.xlabel("SUBJECTS")
plt.ylabel("HIGHEST MARKS")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()