3D Surface Plotter z = f(x, y)
Draws a surface z = f(x, y) as a depth-sorted, height-colored mesh. You turn it by changing two angles.
Use the tool
Why this tool exists
Two-variable functions are hard to picture from the formula alone. A quick surface plot shows peaks, saddles and ripples, such as sin(x) * cos(y) or x^2 - y^2.
The plot is a static image made from filled polygons sorted by depth, with color showing height from blue to red. Because it is not a mouse-driven 3D scene, you rotate it by editing the azimuth and elevation numbers, which also keeps it usable with a keyboard. Very steep surfaces can show small sorting artefacts.
How to use it
- Type the formula in x and y, for example sin(sqrt(x^2 + y^2)).
- Set the x and y ranges and the grid size.
- Change azimuth and elevation to look from another side.
- Check the z range printed below the picture.
Frequently asked questions
Can I rotate with the mouse?
No. Use the angle fields; this keeps the tool accessible and dependency-free.
Why are parts missing?
Points where the function is undefined (such as a division by zero) are left out.
How many points does it use?
Up to 60 by 60 cells, so 3600 polygons.
Can I save the picture?
Use your browser to save or print the page, or take a screenshot.