How to plot lots of lines in 3d space with colors

  Kiến thức lập trình

I have 2 set of points, where every point in first set have z=0 and in secound set have z=2460.
I need to connect every point from the first set to every point from the second set. Moreover, it needs to color the lines depending on the two-dimensional matrix.

The line between the first point of the first set and the 3rd point of the second set must be asd[0][2]. If its help i have 8 points in both sets, so its 64 lines. asd matrix have value from 0 to 4. It would be great if the colors were a spectrum from red to green, depending on the value. (Closer to the lowest is red, to the highest is green)

New contributor

mini max is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT