Liking cljdoc? Tell your friends :D

thi.ng.geom.viz.core


axis-common*

(axis-common* {:keys [visible major-size minor-size label attribs
                      label-style label-dist],
               :or {visible true, major-size 10, minor-size 5},
               :as spec})
source

circle-cell

(circle-cell a b c d col)
source

compute-row-stacking

(compute-row-stacking item-range coll)
source

contour->svg

(contour->svg scale-x scale-y project)
source

contour-matrix

(contour-matrix w h values)
source

default-svg-label

(default-svg-label f)
source

domain-bounds-x

source

domain-bounds-y

source

domain-bounds-z

source

format-percent

(format-percent x)
source

labeled-rect-horizontal

(labeled-rect-horizontal {:keys [h r label fill min-width base-line]})
source

lens-axis

(lens-axis {:keys [domain range focus strength major minor],
            :or {strength 0.5},
            :as spec})
source

lens-scale

(lens-scale focus strength [d1 d2] [r1 r2])
source

lin-tick-marks

(lin-tick-marks [d1 d2] delta)
source

linear-axis

(linear-axis {:keys [domain range major minor], :as spec})
source

linear-scale

(linear-scale domain range)
source

log

(log base)
source

log-axis

(log-axis {:keys [base domain range], :or {base 10}, :as spec})
source

log-scale

(log-scale base [d1 d2 :as domain] [r1 r2 :as range])
source

log-tick-marks-major

(log-tick-marks-major base [d1 d2])
source

log-tick-marks-minor

(log-tick-marks-minor base [d1 d2])
source

log-ticks-domain

(log-ticks-domain base d1 d2)
source

matrix-2d

(matrix-2d w h values)
source

overlap?

(overlap? [a b] [c d])
source

points->path-segments

(points->path-segments [p & more])
source

polar-projection

(polar-projection origin)
source

process-interval-row

(process-interval-row item-range mapper [d1 d2])
source

process-points

(process-points {:keys [x-axis y-axis project]}
                {:keys [values item-pos shape]})
source

select-ticks

(select-ticks axis minor?)
source

svg-area-plot

(svg-area-plot {:keys [y-axis project], :as v-spec}
               {:keys [res], :as d-spec})
source

svg-axis*

(svg-axis* {:keys [major minor attribs label-style]}
           axis
           tick1-fn
           tick2-fn
           label-fn)
source

svg-axis-grid2d-cartesian

(svg-axis-grid2d-cartesian x-axis
                           y-axis
                           {:keys [attribs minor-x minor-y]})
source

svg-axis-grid2d-polar

(svg-axis-grid2d-polar {:keys [x-axis y-axis origin circle project],
                        {:keys [attribs minor-x minor-y]} :grid})
source

svg-bar-plot

(svg-bar-plot
  {:keys [x-axis y-axis project], :or {project vec2}}
  {:keys [values attribs shape item-pos interleave offset bar-width],
   :or {shape (fn [a b _] (svg/line a b)),
        item-pos identity,
        interleave 1,
        bar-width 0,
        offset 0}})
source

svg-contour-plot

(svg-contour-plot {:keys [x-axis y-axis project]}
                  {:keys [matrix attribs levels palette palette-scale
                          value-domain contour-attribs],
                   :or {value-domain [0.0 1.0],
                        palette [[1 1 1]],
                        palette-scale linear-scale,
                        contour-attribs (constantly nil)}})
source

svg-heatmap

clj
(svg-heatmap {:keys [x-axis y-axis project]}
             {:keys [matrix value-domain clamp palette palette-scale
                     attribs shape],
              :or {value-domain [0.0 1.0],
                   palette-scale linear-scale,
                   shape (fn* [p1__22524# p2__22525# p3__22526#
                               p4__22527# p5__22528#]
                           (svg/polygon [p1__22524# p2__22525#
                                         p3__22526# p4__22527#]
                                        {:fill p5__22528#}))},
              :as d-spec})
cljs
(svg-heatmap {:keys [x-axis y-axis project]}
             {:keys [matrix value-domain clamp palette palette-scale
                     attribs shape],
              :or {value-domain [0.0 1.0],
                   palette-scale linear-scale,
                   shape (fn* [p1__26920# p2__26921# p3__26922#
                               p4__26923# p5__26924#]
                           (svg/polygon [p1__26920# p2__26921#
                                         p3__26922# p4__26923#]
                                        {:fill p5__26924#}))},
              :as d-spec})
source

svg-line-plot

(svg-line-plot v-spec d-spec)
source

svg-plot2d-cartesian

(svg-plot2d-cartesian {:keys [x-axis y-axis grid data], :as opts})
source

svg-plot2d-polar

(svg-plot2d-polar {:keys [x-axis y-axis grid data origin], :as spec})
source

svg-radar-plot

(svg-radar-plot v-spec
                {:keys [shape], :or {shape svg/polygon}, :as d-spec})
source

svg-radar-plot-minmax

clj
(svg-radar-plot-minmax
  v-spec
  {:keys [item-pos-min item-pos-max shape],
   :or {shape (fn* [p1__22481# p2__22482# p3__22483#]
                (svg/path (concat p1__22481# [[:Z]] p2__22482# [[:Z]])
                          p3__22483#))},
   :as d-spec})
cljs
(svg-radar-plot-minmax
  v-spec
  {:keys [item-pos-min item-pos-max shape],
   :or {shape (fn* [p1__26893# p2__26894# p3__26895#]
                (svg/path (concat p1__26893# [[:Z]] p2__26894# [[:Z]])
                          p3__26895#))},
   :as d-spec})
source

svg-scatter-plot

(svg-scatter-plot v-spec {:keys [attribs shape], :as d-spec})
source

svg-square

(svg-square r)
source

svg-stacked-interval-plot

(svg-stacked-interval-plot
  {:keys [x-axis y-axis]}
  {:keys [values attribs shape item-range offset],
   :or {shape (fn [[a b]] (svg/line (vec2 a) (vec2 b))),
        item-range identity,
        offset 0}})
source

svg-triangle-down

(svg-triangle-down w)
source

svg-triangle-up

(svg-triangle-up w)
source

svg-x-axis-cartesian

(svg-x-axis-cartesian
  {:keys [scale major-size minor-size label-dist pos label],
   [r1 r2] :range,
   :as spec})
source

svg-x-axis-polar

(svg-x-axis-polar {:keys [x-axis project circle origin]})
source

svg-y-axis-cartesian

(svg-y-axis-cartesian
  {:keys [scale major-size minor-size label-dist label-y pos label],
   [r1 r2] :range,
   :or {label-y 0},
   :as spec})
source

svg-y-axis-polar

(svg-y-axis-polar {:keys [y-axis project]})
source

total-domain-bounds

(total-domain-bounds f & colls)
source

uniform-domain-points

(uniform-domain-points [d1 d2] values)

Given a vector of domain bounds and a collection of data values (without domain position), produces a lazy-seq of 2-element vectors representing the values of the original coll uniformly spread over the full domain range, with each of the form: [domain-pos value].

Given a vector of domain bounds and a collection of data values
(without domain position), produces a lazy-seq of 2-element vectors
representing the values of the original coll uniformly spread over
the full domain range, with each of the form: [domain-pos value].
sourceraw docstring

value-domain-bounds

(value-domain-bounds mat)
source

value-formatter

(value-formatter prec)
source

value-mapper

(value-mapper scale-x scale-y)
source

value-transducer

(value-transducer {:keys [cull-domain cull-range scale-x scale-y
                          project shape item-pos]})
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close