Advertisement
reneDK

Untitled

Feb 10th, 2020
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import matplotlib.pyplot as Plt
  2.  
  3. #### CirkelGraf
  4.  
  5. # Navne til hver del
  6. name = ["Ann", "Renè", "Louise", "Stephanie"]
  7.  
  8. # Data til hver del (husk samme rækkefølge som labels)
  9.  
  10. number = [12, 20, 50, 100]
  11.  
  12. #Plot/graf
  13.  
  14. #plt.figure()
  15.  
  16. #plt.subplot(131)
  17.  
  18. plt.pie(number, labels=name
  19. # , autopct="%1.1f%%"
  20. # , startangle=90
  21. # , explode=(0,0.1,0,0,3)
  22. )
  23.  
  24. #plt.title("dyr")
  25.  
  26. #plt.legend()
  27.  
  28. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement