Wolfram: PlotStyle
PlotStyle
PlotStyle
is an option for Plot
, Plot3D
, etc.
It lets you add Graphics Directive to the surface, such as color, etc.
If you need to color the surface by height or other depending on a variable, you need to use ColorFunction
instead.
Syntax
PlotStyle -> GraphicsDirectives
Example. White Color. One Directional White Lighting.

Plot3D[Sin[x] Cos[y], {x, 0, 3 Pi}, {y, 0, 3 Pi}, PlotStyle -> White, Lighting -> DirectionalLight[White, ImageScaled[{1,1,0}] ] ]
Example. Red Color. One Directional White Lighting.

Plot3D[Sin[x] Cos[y], {x, 0, 3 Pi}, {y, 0, 3 Pi}, PlotStyle -> Red, Lighting -> DirectionalLight[White, {1, 1, 1}] ]