Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import numpy as np
- y = np.array([50,80,75,25])
- mylabels = ['facebook','youtube','programming','twitter']
- myexplode = [0,0.2,0,0]
- plt.pie(y,labels = mylabels,explode = myexplode, shadow = True)
- plt.title('Activities')
- # ~ plt.legend()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement