Documentation
¶
Overview ¶
Package coord defines coordinate systems that control how data positions are mapped to the 2D plotting surface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coord ¶
type Coord interface {
// Transform maps normalized (x, y) ∈ [0,1]² to pixel coordinates
// within the data area of dimensions (width, height).
Transform(x, y, width, height float64) (px, py float64)
// String returns a human-readable label.
String() string
}
Coord transforms scaled data positions (in [0,1] normalized space) into plot-surface positions.
Click to show internal directories.
Click to hide internal directories.