Home > three_d.js > Examples

Minimal surface three_d.js example

This is the simplest call to three_d.make_surface(params), when the argument params contains only the id of the <div> element to plot in, and the data. The data object contains only x, y, and z arrays (the latter an array of arrays).

Mouse controls: Left-click and drag to rotate; alt (Mac)- or ctrl (Windows)-click-drag or middle-click-drag to pan; scroll or shift-click-drag to zoom. Touch screen controls: one finger to rotate; two-finger scroll to pan; pinch to zoom.

You can see how the plot is constructed in the HTML source.

Posted 2016-12-22.


Home > three_d.js > Examples