3D lines/curves, following a color map

Hi there,

I could not find anything concerning a line in 3d-Space, where the color of the line acutally depicts the height of the line in relation to the z-axis (for instance using the rainbow color map).

See the link for an example image in 2D space (the colors in this example do not really reflect the z-height of the line, but give an idea of what I mean) :

I want to use a mutlicolor line to connect the points of a TGraph2D drawn with the “pcolz” option… Thanks for your help!

Best regards,


That’s right … multicolour line are not implemented. If you points are close enough you can plot them as markers and you will get that kind of effect.