reneDK

Untitled

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