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