How to I change line color after calling matplotlib plot?
<p>The following code, take from thetechrepo tutorial, will plot some data with different colors.</p>

<pre><code>import matplotlib.pyplot as plt
plt.figure()

#create data
x_series = [0,1,2,3,4,5]
y_series_1 = [x**2 for x in x_series]
y_series_2 = [x**3 for x in x_series]

plt.plot(x_series, y_series_1, 'r-')
plt.plot(x_series, y_series_2, 'c--')
plt.show()
</code></pre>

<p>However what if I wanted to change the colors <em>after</em> I've called plot? For example how would I change the color of <code>series_1</code> to green after I had called <code>plt.plot(x_series, y_series_1, 'r-')</code>?</p>