I am trying to build a shell using trisurf. I need to specify the color of each triangle (there are a lot of them). It can be done? I tried this, but it does not work:
import matplotlib.pyplot as plt: ... fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.plot_trisurf(points[:,0], points[:,1], points[:,2], triangles=faces, cmap=facecolors) plt.show()
facecolors - matrix with len(faces) rows; each row (R, G, B). If I omit the cmap argument, it certainly looks normal, but monochromatic.
Can I do what I want?
source share