[Solved] Given the school Result data. Write a program to plot a bar chart to analyse the performance of student on subject wise.

   RSS

1
Topic starter

Given the school Result data. Write a program to plot a bar chart to analyse the performance of student on subject wise.

 

This topic was modified 2 months ago 2 times by CodeWithBishal-admin
1 Answer
1
Topic starter
import matplotlib.pyplot as plt


subject = ['Physic','Chemistry', 'Biology','IP']
percentage =[85,78,90,100]
plt.bar(subject,percentage)
plt.title('Analyse Performance of Student on Subject Wise')
plt.xlabel('Subject')
plt.ylabel('Percentage of Students passed')
plt.show()