How can I Rescale a ColorFunction on a 3D plot
Clash Royale CLAN TAG #URR8PPP up vote 2 down vote favorite 2 I'll like to know if there is a way to do this colorfunction scaling on 3D plots Plot[0.8 Sin[x] + 0.2, x, 0, 3 [Pi], ColorFunction -> (ColorData["Rainbow"][Rescale[#2, 0.2, 1]] &), ColorFunctionScaling -> False, PlotRange -> -1, 1] then we got the color function scaled I'll like to do the same in 3D on this case Plot3D[Sin[x] Sin[y], x, 0, 3 [Pi], y, 0, 3 [Pi], ColorFunction -> (ColorData["Rainbow"][Rescale[#2, 0.2, 1]] &), ColorFunctionScaling -> False] But something terrible happens, it is scaled on x and y but not on z plotting color share | improve this question asked Nov 30 at 5:24 Heberley Tobón Maya 62 4 I thik that I solve it using this Plot3D[Sin[x] Sin[y], x, 0, 3 [Pi], y, 0, 3 [Pi], ColorFunction -> Function[x, y, z, (ColorData["Rainbow"][Rescale[#, 0.2, 1]] &)[ z]], ColorFunctionScaling...