|
From: Claus <cla...@gm...> - 2012-11-15 16:24:57
|
Hi, I have this issue, schematically: import numpy as np import matplotlib.pyplot as plt x = np.linspace(0.0, a, b) for i in range(d): y1 = f1(x, p1_i, p2_i) y2 = f2(x, p1_i, p2_i) plt.scatter(x, y1, c=color[i]) plt.plot(x, y2, '-', c=color[i] my question: how can I setup color to be d colors from some colormap (like cm.copper or cm.jet), they should be somewhat "equally" spaced… maybe the loop is not ideal, but I don't know a better way (yet)… Thanks for your help, Cheers, Claus |