I want to fill between two curves in a 3D plot in matplotlib. I used this answer to do that. But I want to use a texture for filling rather than a single color. I very much appreciate any help. I ued the following syntax but it did not work:
ax.add_collection3d(Poly3DCollection([verts],facecolor="none", hatch="x", edgecolor="orange"))
In the original code is and has only color as an arguement:
ax.add_collection3d(Poly3DCollection([verts],color='orange'))
CodePudding user response:
Setting the facecolor to none is returning an error there. It might be a bug but the workaround is to set facecolor=(0, 0, 0, 0)
:
ax.add_collection3d(Poly3DCollection([verts],facecolor=(0, 0, 0, 0), hatch="x", edgecolor="orange"))