import matplotlib.pylab as plt
from matplotlib import cm
import numpy as np
t = np.arange(0.0, 1.0, 0.01)
s = np.sin(2 * np.pi * t)
colors = [cm.jet(i) for i in np.linspace(0, 1, 10)]
plt.figure(figsize=(20, 8))
for i, c in enumerate(colors):
    ax = plt.subplot(5, 2, i + 1)
plt.plot(t, s, color=c)
plt.show()
Python 10 colors in plot