How to generate 3D surface plot using a color scale that comprises of colors like Red,Yellow & Green
Please have a look at the attached sample
Alternatively, if I can get some direction on how the Colors are derived for the different predefined color-scales i.e. the rgb values for different ranges of Z coordinate, I could try to tweak those to generate similar color pattern for my plots.
Thanks for your reply…actually the custom color scale doesn’t change colors as specified by the rgb values.
There are several 3D plots throughout my application with varying range for Z-coordinate.
For one particular plot it varies from ‘0.89’ to ‘1.0’ , where I am trying to test custom color scale , with the below values :-
colorscale : [
[‘0.8’, ‘rgb(255,0,0)’]
[‘1.0’, ‘rgb(0,255,0)’]
]
Still the plots don’t show up the colors as specified i.e. red & green.
Basically, Colorscales for me doesn’t seem to work at all.
Also, I have based the color scale on x-axis with the following attribute:
surfacecolor: xArray[0]
Here xArray contains value for x-axis which is a 1D array of values spanning from 500.00 to 7000.00 in steps of 250.