API Reference Elixir Technical Drawing v#0.5.0

Copy Markdown View Source

Modules

BLAND — Elixir Technical Drawing.

Static base-layer data for geographic figures.

Hand-curated, low-resolution Earth coastline, border, and reference line data.

Hand-curated outlines of the major lunar maria (basaltic plains of the Moon's near side).

Marching-squares contour extraction for 2D scalar grids.

Date-axis support: conversion to a numeric representation, calendar- snapped tick generation, and strftime-based label formatting.

The plot document.

Geographic projections for plotting longitude/latitude data.

Composes multiple %Bland.Figure{} into one SVG — the multi-panel layout tool.

Binning and ramp helpers for monochrome heatmaps.

Binning helpers for histograms.

Minimal Livebook integration for live-updating plots.

Scatter-point markers in the monochrome technical-drawing tradition.

Monochrome SVG fill patterns — the hatching vocabulary of a 1970s technical report.

Phoenix LiveView component — embeds a %Bland.Figure{} as inline SVG in a HEEx template.

Polar coordinate projection and helpers.

Figure-to-SVG renderer.

Coordinate scaling between data space and canvas space.

Series data structures.

Filled area between a curve and a baseline. baseline defaults to 0.0. See Bland.area/4.

Bar series. categories is a list of labels (used for the x axis); values is the corresponding numeric list. See Bland.bar/4.

Box-and-whisker series. One box per category.

Contour series — iso-level curves on a 2D scalar grid.

Error-bar series — discrete (x, y) points with optional X and/or Y uncertainty whiskers.

2D grid rendered as hatched cells. See Bland.heatmap/3 and Bland.Heatmap.

Horizontal reference line at y.

Horizontal shaded reference region — a rectangle spanning y ∈ [y1, y2] across the full plot width. Drawn behind every data series. Useful for acceptance bands, tolerance windows.

Line series. See Bland.line/4.

Closed filled polygon in data space. See Bland.polygon/4.

Quiver series — a 2D vector field. Each (x, y) has an arrow pointing in the direction of (u, v) with length proportional to √(u² + v²).

Scatter series. See Bland.scatter/4.

Stem-plot series — a vertical line from baseline to (x, y) with a marker at the tip. Canonical for discrete-time signals.

Vertical reference line at x.

Vertical shaded reference region — a rectangle spanning x ∈ [x1, x2] across the full plot height. Drawn behind every data series so it never obscures the curves.

Smith chart helpers.

Small stats helpers used by the box-plot, Q-Q, and histogram routines. Intentionally narrow — this is not a general stats library.

Line-style vocabulary for monochrome plots.

Low-level SVG element builders.

Theme presets and defaults.

Nice-rounded tick generation.

Engineering-drawing title block.

Mix Tasks

Reads GeoJSON files from priv/basemaps/source/ and emits Elixir data modules to lib/bland/basemaps/data/.

Produces a fixed set of hero SVGs used by the generated documentation to illustrate each plot type.