from matplotlib import pyplot as plt
student_performance = ["Excellent","Good","Average","Poor"]
student_values = [15,25,12,8]
plt.figure(figsize=(7,10))
plt.pie(student_values,labels=student_performance,startangle=90,
explode=[0.2,0,0,0],shadow=True,colors=["black","blue","yellow","red"],autopct="%2.1f%%")
plt.legend(title="Perfomances")
plt.show
oin us: https://t.me/jupyter_python
0 Comments:
Post a Comment