plot/style
src/plot/style.tur
defn
line-style
(line-style [color :int width :float dash :int alpha :float] :int)
allocate a line-style value.
defn
point-style
(point-style [color :int fill-color :int sym :int size :float alpha :float] :int)
allocate a point-style value.
defn
fill-style
(fill-style [color :int alpha :float line-color :int line-width :float] :int)
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] :int)
allocate a plot-opts value.
defn
plot-opts-width
(plot-opts-width [opts :int] :int)
read the configured output width.
defn
plot-opts-height
(plot-opts-height [opts :int] :int)
read the configured output height.
defn
default-line-style
(default-line-style :int)
default line style with auto color.
defn
default-point-style
(default-point-style :int)
default point style with auto color.
defn
default-fill-style
(default-fill-style :int)
default fill style with auto color.
defn
default-plot-opts
(default-plot-opts :int)
default plot options.
defn
dash-solid
(dash-solid :int)
solid stroke constant.
defn
dash-dash
(dash-dash :int)
dashed stroke constant.
defn
dash-dot
(dash-dot :int)
dotted stroke constant.
defn
dash-dash-dot
(dash-dash-dot :int)
dash-dot stroke constant.
defn
sym-circle
(sym-circle :int)
circle point symbol constant.
defn
sym-square
(sym-square :int)
square point symbol constant.
defn
sym-triangle
(sym-triangle :int)
triangle point symbol constant.
defn
sym-cross
(sym-cross :int)
cross point symbol constant.
defn
sym-plus
(sym-plus :int)
plus point symbol constant.
defn
sym-diamond
(sym-diamond :int)
diamond point symbol constant.
defn
palette-size
(palette-size :int)
number of built-in palette entries.
defn
palette-color
(palette-color [idx :int] :int)
return (r g b) for palette index idx.
defn
color-seq
(color-seq [start-idx :int end-idx :int n :int] :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.