I want to plot many boxes in a scene. If I use mlab.plot3d, it will be very slow.
Therefore, I draw many line segments and then connect them to form boxes using plotting-many-lines-example. But, I do not know how to customize their colors.
I want to plot many boxes in a scene. If I use mlab.plot3d, it will be very slow.
Therefore, I draw many line segments and then connect them to form boxes using plotting-many-lines-example. But, I do not know how to customize their colors.
Copyright © 2021 Jogjafile Inc.
I have found a solution. We can use
mlab.quiver3dto draw many line segments at the same time by assigningmode="2ddash". Below is my code to draw many boxes at the same time with the option to specify the color of each box.