Heatmap
heatmapBlock elementGraph
The same surface a contour traces, shaded instead: one expression in x AND y, grid-sampled over the visible window and drawn as a continuous wash of the mark's hue — bare where the value is low, full where it is high. The two marks compose: a heatmap under a contour is the classic landscape rendering, and @let keeps the shared expression written once. As with contour, `y` is the vertical axis, not a parameter.
Attributes
expressionRequiredImplicit
parametised-surface-expressionrange
parametised-intervalinvert
booleanDefaultfalse
colour
surface-colourDefaultmulticolour
hidden
booleanDefaultfalse
Draw order within the pane.
Derived attributes
Computed while the element renders — read one with #id.name in attribute position or !value:#id.name() in prose, never set.
minDerived
maxDerived
Allowed in
Examples
heatmap(expression: x*y; range: [-9, 9]; colour: temperature)heatmap(expression: x^2 + y^2)heatmap(expression: (x - 2)^2 + (y - 3)^2; colour: red; invert: true)heatmap(expression: {{sse}}; opacity: 0.5)
contour(expression: {{sse}}; at: 1, 2, 4, 8, 16)