No matching definitions.

plot/contour

src/plot/contour.tur
defstruct

IsolineR

(defstruct IsolineR :copy [f : (fn [float float])

the single contour f(x, y) = level.

defstruct

ContoursR

(defstruct ContoursR :copy [f : (fn [float float])

`levels` contours in one style, spaced evenly through the

defstruct

ContourIntervalsR

(defstruct ContourIntervalsR :copy [f : (fn [float float])

f(x, y) over [0, 1] split into `bands` + 1 filled

defstruct

ColorFieldR

(defstruct ColorFieldR :copy [f : (fn [float float])

each grid cell filled with palette color f(x, y), at `alpha`.

defn

isoline

(isoline [^fat f : (fn [float float])

draw a single f(x,y)=level contour.

fthe field, a (fn [float float] float)
x-minleft edge of the sampled domain
x-maxright edge of the sampled domain
y-minbottom edge of the sampled domain
y-maxtop edge of the sampled domain
samplesgrid points per axis (at least 8)
levelthe contour value
stylethe LineStyle to stroke with
labellegend text ("" for none)

An IsolineR boxed as an AnyRenderer.

(isoline saddle -2.0 2.0 -2.0 2.0 32 0.0 (default-line-style) "zero")
defn

contours

(contours [^fat f : (fn [float float])

draw n contour levels spaced evenly through f's range.

fthe field, a (fn [float float] float)
x-minleft edge of the sampled domain
x-maxright edge of the sampled domain
y-minbottom edge of the sampled domain
y-maxtop edge of the sampled domain
samplesgrid points per axis (at least 8)
nnumber of levels
stylethe LineStyle of every level
labellegend text ("" for none)

A ContoursR boxed as an AnyRenderer.

(contours saddle -2.0 2.0 -2.0 2.0 32 4 (default-line-style) "levels")
defn

contour-intervals

(contour-intervals [^fat f : (fn [float float])

fill contour bands using sampled cells.

fthe field, a (fn [float float] float), banded over [0, 1]
x-minleft edge of the sampled domain
x-maxright edge of the sampled domain
y-minbottom edge of the sampled domain
y-maxtop edge of the sampled domain
samplesgrid points per axis (at least 8)
nnumber of band boundaries (n + 1 bands)
fillsthe FillStyle of each band, in order
labellegend text ("" for none)

A ContourIntervalsR boxed as an AnyRenderer.

(contour-intervals saddle -2.0 2.0 -2.0 2.0 32 3 (vec-of lo mid hi) "bands")
defn

color-field

(color-field [^fat f : (fn [float float])

color sampled cells by f(x,y)->color-idx.

fthe coloring, a (fn [float float] int) returning a palette index
x-minleft edge of the sampled domain
x-maxright edge of the sampled domain
y-minbottom edge of the sampled domain
y-maxtop edge of the sampled domain
samplesgrid points per axis (at least 8)
alphacell opacity

A ColorFieldR boxed as an AnyRenderer.

(color-field quadrant -2.0 2.0 -2.0 2.0 32 0.35)
Internal definitions
__draw-color-field-- fill each grid cell with palette color f(cell center).
__draw-contour-bands-- fill each grid cell with the fill of the band (of
__draw-contour-lines-- stroke the f(x, y) = level contours by marching
Renderer[IsolineR]
Renderer[ContoursR]
Renderer[ContourIntervalsR]
Renderer[ColorFieldR]