| Author |
Comment/Response |
Bill Simpson
|
10/09/12 1:04pm
http://reference.wolfram.com/mathematica/ref/ColorFunction.html
behind the link "More Information" says
"With the usual default setting ColorFunctionScaling->True, all arguments supplied to func are scaled to lie in the range 0 to 1."
In[1]:= xMin= -3; xMax=3; yMin= -3; yMax=3;
f[x_, y_] := x+2y;
cfun[z_] := Which[z < .5, RGBColor[0, 0, 1], z ≥ .5, RGBColor[0.6, 0.4, 0.2]];
ContourPlot[f[x, y], {x, xMin, xMax}, {y, yMin, yMax}, ColorFunction -> cfun]
Out[7]= <graph snipped>
Note: I got those RGBColor values by looking up Blue and Brown in the help system.
Really understanding all the subtle details of ColorFunction in all the various ways it is used in all the various plot functions is a serious challenge.
URL: , |
|