Liking cljdoc? Tell your friends :D

scicloj.plotje.render.panel


panel->membraneclj

(panel->membrane panel
                 pw
                 ph
                 m
                 cfg
                 &
                 {:keys [show-x? show-y? include-bg? tooltip x-col-name
                         y-col-name]
                  :or {show-x? true show-y? true include-bg? true}})

Convert a plan panel into a membrane drawable tree. Takes a panel map from draft->plan and pixel dimensions. show-x? and show-y? control whether tick labels are drawn (grid lines always render). include-bg? controls whether the panel background rectangle is included; when the caller is rendering backgrounds in a separate pass (sparse grids), set it to false so foreground elements from earlier panels do not get painted over by later panels' backgrounds. cfg is the resolved config map.

Convert a plan panel into a membrane drawable tree.
Takes a panel map from draft->plan and pixel dimensions.
show-x? and show-y? control whether tick labels are drawn
(grid lines always render). include-bg? controls whether the
panel background rectangle is included; when the caller is
rendering backgrounds in a separate pass (sparse grids), set
it to false so foreground elements from earlier panels do not
get painted over by later panels' backgrounds. cfg is the
resolved config map.
sourceraw docstring

polar-radius-scaleclj

(polar-radius-scale coord-px sy m)

Where a radius tick's label stands on a polar panel's left edge: level with the top of its circle, read off the projection at angle zero.

Where a radius tick's label stands on a polar panel's left edge:
level with the top of its circle, read off the projection at angle
zero.
sourceraw docstring

render-grid-from-ticksclj

(render-grid-from-ticks sx sy x-ticks y-ticks pw ph m cfg)

Render grid lines using pre-computed tick values from a plan. Skips grid lines for categorical axes (like ggplot2).

Render grid lines using pre-computed tick values from a plan.
Skips grid lines for categorical axes (like ggplot2).
sourceraw docstring

render-polar-gridclj

(render-polar-grid pw ph m cfg coord-px sx sy x-ticks y-ticks)

Render a polar panel's grid: a circle at each tick of the radius (:y) and a spoke at each tick of the angle (:x), through the same projection the marks are drawn with (coord-px). With no ticks on an axis, five evenly spaced circles or eight spokes.

Render a polar panel's grid: a circle at each tick of the radius
(`:y`) and a spoke at each tick of the angle (`:x`), through the
same projection the marks are drawn with (`coord-px`). With no ticks
on an axis, five evenly spaced circles or eight spokes.
sourceraw docstring

render-polar-tick-labelsclj

(render-polar-tick-labels pw ph m cfg coord-px sx x-ticks)

The angle (:x) tick labels of a polar panel, each just outside the outer circle, in line with its spoke. Ticks that fall at one angle -- the two ends of a numeric axis, which meet at the top -- are labelled once, their labels joined by a slash, as ggplot2 does. The radius labels are drawn at the left edge, polar-radius-scale.

The angle (`:x`) tick labels of a polar panel, each just outside the
outer circle, in line with its spoke. Ticks that fall at one angle
-- the two ends of a numeric axis, which meet at the top -- are
labelled once, their labels joined by a slash, as ggplot2 does.
The radius labels are drawn at the left edge, `polar-radius-scale`.
sourceraw docstring

render-tick-labelsclj

(render-tick-labels axis tick-info scale pw ph m cfg)

Render tick labels from pre-computed tick info in a plan. X-axis labels are emitted with text-anchor="middle" so they center on the tick; Y-axis labels with text-anchor="end" so they right-align against the panel margin. This delegates label width measurement to the renderer (browser for SVG) instead of guessing with a char-count heuristic.

Render tick labels from pre-computed tick info in a plan.
X-axis labels are emitted with `text-anchor="middle"` so they
center on the tick; Y-axis labels with `text-anchor="end"` so
they right-align against the panel margin. This delegates label
width measurement to the renderer (browser for SVG) instead of
guessing with a char-count heuristic.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close