No matching definitions.

plot/style

src/plot/style.tur
defn

line-style

(line-style [color : int width : float dash : int alpha : float] :)

allocate a line-style value.

defn

point-style

(point-style [color : int fill-color : int sym : int size : float alpha : float] :)

allocate a point-style value.

defn

fill-style

(fill-style [color : int alpha : float line-color : int line-width : float] :)

allocate a fill-style value.

defn

plot-opts

(plot-opts [width : int height : int title : cstr x-label : cstr y-label : cstr x-min : float x-max : float y-min : float y-max : float legend-pos : int] :)

allocate a plot-opts value.

defn

plot-opts-width

(plot-opts-width [opts : int] :)

read the configured output width.

defn

plot-opts-height

(plot-opts-height [opts : int] :)

read the configured output height.

defn

default-line-style

(default-line-style :)

default line style with auto color.

defn

default-point-style

(default-point-style :)

default point style with auto color.

defn

default-fill-style

(default-fill-style :)

default fill style with auto color.

defn

default-plot-opts

(default-plot-opts :)

default plot options.

defn

dash-solid

(dash-solid :)

solid stroke constant.

defn

dash-dash

(dash-dash :)

dashed stroke constant.

defn

dash-dot

(dash-dot :)

dotted stroke constant.

defn

dash-dash-dot

(dash-dash-dot :)

dash-dot stroke constant.

defn

sym-circle

(sym-circle :)

circle point symbol constant.

defn

sym-square

(sym-square :)

square point symbol constant.

defn

sym-triangle

(sym-triangle :)

triangle point symbol constant.

defn

sym-cross

(sym-cross :)

cross point symbol constant.

defn

sym-plus

(sym-plus :)

plus point symbol constant.

defn

sym-diamond

(sym-diamond :)

diamond point symbol constant.

defn

palette-size

(palette-size :)

number of built-in palette entries.

defn

palette-color

(palette-color [idx : int] :)

return (r g b) for palette index idx.

defn

color-seq

(color-seq [start-idx : int end-idx : int n : int] :)

interpolate between palette anchors and return nearest palette indices.

Internal definitions
__nan-- quiet NaN sentinel for auto bounds.
__null-cstr-- typed nil cstr sentinel.