# # Pir Graph
# import matplotlib.pyplot as plt
days = [1,2,3,4,5]
sleeping = [2,4,6,8,10]
eating = [1,3,2,3,2]
working = [8,7,6,8,6]
playing = [2,4,3,2,4]
slices = [6,8,6,4]
activities = ['sleeping', 'eating', 'working', 'playing']
cols = ['c', 'm','r','k']
plt.pie(slices, labels = activities, colors = cols, startangle = 90, shadow = True, explode = (0, 0.1,0,0), autopct = '%1.1f%%')
plt.xlabel("x")
plt.ylabel("y")
plt.title("Pie Graph")
plt.legend()
plt.show()
great work
ReplyDeletethank you
Delete