I have a graph with three lines and I want te change for all these lines the color. But how can I do that?
I have tried this, but it didn't work.
plt.subplot2grid((3, 3), (0, 1))
plt.plot(table[['InvMean', 'InvMeanF', 'SafetyStock']], color='red')
plt.xlim([0, total_days])
plt.ylim([min_y, max_y])
Because, all the lines will be red
And I have tried this, but it didn't work too.
plt.subplot2grid((3, 3), (0, 1))
plt.plot(table[['InvMean', 'InvMeanF', 'SafetyStock']], color=('red', 'green', 'blue))
plt.xlim([0, total_days])
plt.ylim([min_y, max_y])
This is my code:
plt.subplot2grid((3, 3), (0, 1))
plt.plot(table[['InvMean', 'InvMeanF', 'SafetyStock']])
plt.xlim([0, total_days])
plt.ylim([min_y, max_y])
InvMean, InvMeanF and SafetyStock are the names of my columns, that doesn't matter.
Do somebody knows how I can solve this problem?