function visualiser · r² → r⁴

4D plotter

Enter four real functions of x and y. One can lift the surface; the others colour it. Drag components between height and colour, then read the discrete swatches as a key to the extra dimensions.

Functions

LaTeX input
f₁
cos(x)
f₂
sin(x)
f₃
cos(y)
f₄
sin(y)
x domain
y domain
grid resolution
20²

Representation

drag components to swap
RoleComponentOn
colour system
perceptual
Ready.

Component ranges

sampled over the current domain
f₁ ∈ [—, —]
f₂ ∈ [—, —]
f₃ ∈ [—, —]
f₄ ∈ [—, —]
plot

Function surface

drag: orbit · wheel: zoom · double-click: reset
colour key

Discrete swatches

Choose the function held fixed
When three colour functions are active, each swatch varies two functions across its axes while the selected function is held at one of nine values.
Colour swatchesColoured cells are attained on the sampled domain; grey cells are not.