Let's say I want to plot and i have a 1d array for x and a 2d array for y. That is, i want to plot multiple lines. I want each line to have its own color. The colors seem to run out - they start to repeat. What is the easiest way to get distinct colors for many lines?
This shows that the colors repeat:
aa=np.array(range(10),range(20))
bb=np.array(range(0,100,1)).reshape(10,10)
fig = plt.figure()
ax=plt.subplot(111)
ax.plot(aa,bb)
fig.savefig('sample.png')