Page 65 - IPP-12-2024
P. 65

elif vis_choice==3:

                                   while(True):

                                       print("Horizontal 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.barh(result.index,result['Highest'],label="Highest Marks",
               color="green")

                                           plt.title("SUBJECTWISE HIGHEST
               MARKS")

                                           plt.ylabel("SUBJECTS")

                                           plt.xlabel("HIGHEST MARKS")

                                           plt.legend()

                                           plt.show()

                                       elif chbar==2:

               plt.barh(result.index,result['Appeared'],label="Number of
               students appeared",color="yellow")

                                           plt.title("NUMBER OF STUDENTS
               APPEARED")

                                           plt.ylabel("SUBJECTS")
                                           plt.xlabel("NUMBER OF STUDENTS")

                                           plt.legend()

                                           plt.show()

                                       elif chbar==3:
   60   61   62   63   64   65   66   67   68   69   70