I have a 3D Plot that I created using matplotlib, and I have a list of rbg values that correspond to each point.
I have the X, Y, and Z data, and then I have a "color list" of the form:
[ (r,g,b), (r,g,b), ... , (r,g,b) ]
to match each (x, y, z) point.
Right now, I have
fig = plt.figure()
ax = fig.add_subplot(111, projection = '3d')
ax.scatter(X, Y, Z)
plt.show()
What's the appropriate way to incorporate those rgb tuples so that each point will be assigned a specific color?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…