I\'ve been googling quite some time with no success ... maybe my keywords are just lousy. Anyway, suppose I have three 1D numpy.ndarrays of the same length I\'d
You can plot every line segment separately, as shown below. This just loops over 6 predefined colors, since @askewchan's answer already demonstrates well how to use a colormap.
cols = 'rgbcmy'
for i in range(len(x)-1):
ax.plot(x[i:i+2], y[i:i+2], z[i:i+2], color=cols[i%6])