labels = ['player1', 'player2', 'player3']
colors = ['
#008fd5', '
#fc4f30', '
#6d904f']
plt.stackplot(minutes, player1, player2, player3, labels = labels, colors= colors)
plt.legend(loc = 'lower left')
plt.title("My Awesome Stack Plot")
plt.tight_layout()
plt.showmatplotlib with