Wolfram: PlotStyle

By Xah Lee. Date: . Last updated: .

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

Wolfram: Graphics Directive

Example. White Color. One Directional White Lighting.

wl PlotStyle 2025-07-01 29a6d
wl PlotStyle 2025-07-01 29a6d
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.

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

Example. Transparency

Wolfram. Plot and Visualization