starting_code.py 436 B

1234567891011121314151617181920212223
  1. from matplotlib import pyplot as plt
  2. plt.style.use("fivethirtyeight")
  3. minutes = [1, 2, 3, 4, 5, 6, 7, 8, 9]
  4. player1 = [1, 2, 3, 3, 4, 4, 4, 4, 5]
  5. player2 = [1, 1, 1, 1, 2, 2, 2, 3, 4]
  6. player3 = [1, 1, 1, 2, 2, 2, 3, 3, 3]
  7. plt.pie([1, 1, 1], labels=["Player 1", "Player2", "Player3"])
  8. plt.title("My Awesome Stack Plot")
  9. plt.tight_layout()
  10. plt.show()
  11. # Colors:
  12. # Blue = #008fd5
  13. # Red = #fc4f30
  14. # Yellow = #e5ae37
  15. # Green = #6d904f