WLJS LogoWLJS Notebook

Plot3D

Plot3D[f, {x, xmin, xmax}, {y, ymin, ymax}] generates a three-dimensional plot of f as a function of x and y.

Examples

Plot a 3D surface:

Plot3D[Sin[x] Cos[y], {x, -Pi, Pi}, {y, -Pi, Pi}]

With options:

Plot3D[x^2 + y^2, {x, -2, 2}, {y, -2, 2}, ColorFunction -> "Rainbow"]

Please visit the official Wolfram Language Reference for more details.

On this page