Versions in this module Expand all Collapse all v0 v0.10.0 Sep 11, 2026 Changes in this version + func AppendLevels(dst []float64, lo, hi float64, n int) []float64 + func FamilyName(f Family) (string, bool) + func Levels(lo, hi float64, n int) []float64 + type Contour struct + Levels []float64 + Lines []Isoline + Points []Point + func (c *Contour) Line(l Isoline) []Point + func (c *Contour) Reset(xs, ys, z []float64, levels []float64) + type Extent struct + Steps int + X0 float64 + X1 float64 + Y0 float64 + Y1 float64 + type Family interface + Locus func(xs, ys []float64, level float64, ext Extent) ([]float64, []float64) + var NicholsM Family = nameNicholsM + var NicholsN Family = nameNicholsN + var SmithQ Family = nameSmithQ + var SmithVSWR Family = nameSmithVSWR + func FamilyNamed(name string) (Family, bool) + type Isoline struct + Closed bool + Hi int + Index int + Level float64 + Lo int + type Lattice struct + At int + Fault LatticeFault + Row []int32 + V []float64 + With int + Xs []float64 + Ys []float64 + func (l *Lattice) Index(i, j int) int + func (l *Lattice) Reset(xs, ys, vs []float64) LatticeFault + func (l *Lattice) Value(i, j int) float64 + type LatticeFault uint8 + const LatticeBadPosition + const LatticeDuplicate + const LatticeOK + const LatticeRagged + const LatticeTooSmall + const LatticeWrongCount v0.9.0 Sep 11, 2026 v0.8.1 Sep 9, 2026 v0.8.0 Sep 9, 2026 Changes in this version + const DefaultKDEPoints + const DefaultLoessPoints + const DefaultSpan + const NoParent + const SankeySweeps + func AppendDepth(dst []int, parent []int) []int + func AppendLTTB[F Float](dst []int, x, y []F, threshold int) []int + func AppendMinMax[F Float](dst []int, x []F, columns int, ys ...[]F) []int + func AppendPartition(lo, hi []float64, total []float64, parent, depth []int) ([]float64, []float64) + func AppendRollup(dst []float64, value []float64, parent, depth []int) []float64 + func AppendStackOffsets(dst []float64, mode StackMode, series [][]float64) []float64 + func Depth(parent []int) []int + func FreedmanDiaconis(sorted []float64) int + func LTTB[F Float](x, y []F, threshold int) []int + func MinMax[F Float](x []F, columns int, ys ...[]F) []int + func NormalQuantile(p float64) float64 + func Partition(total []float64, parent, depth []int) (lo, hi []float64) + func Quantile(sorted []float64, p float64) float64 + func Rollup(value []float64, parent, depth []int) []float64 + func Silverman(sd, iqr float64, n int) float64 + func StackOffsets(mode StackMode, series [][]float64) []float64 + func StdDev(vs []float64) float64 + func Sturges(n int) int + type Bucket struct + Count int + Hi float64 + Lo float64 + func AppendBin(dst []Bucket, vs []float64, lo, hi float64, n int) []Bucket + func Bin(vs []float64, lo, hi float64, n int) []Bucket + func (b Bucket) Mid() float64 + type Cell struct + Col int + Count uint32 + Row int + X float64 + Y float64 + type Chord struct + Arcs []Span + Ribbons []Ribbon + func (c *Chord) Reset(from, to []int, value []float64, nodes int, pad float64) + type Float interface + type Grid struct + Cols int + Counts []uint32 + Max uint32 + N int + Rows int + X0 float64 + X1 float64 + Y0 float64 + Y1 float64 + func BinGrid[F Float](g *Grid, xs, ys []F) *Grid + func (g *Grid) Add(x, y float64) bool + func (g *Grid) At(col, row int) uint32 + func (g *Grid) Cell(x, y float64) (col, row int, ok bool) + func (g *Grid) Fraction(count uint32, s Scaling) float64 + func (g *Grid) Raster(dst *image.NRGBA, s Scaling, paint func(t float64) color.NRGBA) *image.NRGBA + func (g *Grid) Reset(cols, rows int, x0, y0, x1, y1 float64) + type Hex struct + Cols int + Counts []uint32 + Max uint32 + MaxX float64 + MaxY float64 + MinX float64 + MinY float64 + N int + Radius float64 + Rows int + X0 float64 + Y0 float64 + func BinHex[F Float](h *Hex, xs, ys []F) *Hex + func (h *Hex) Add(x, y float64) bool + func (h *Hex) At(col, row int) uint32 + func (h *Hex) Cell(x, y float64) (col, row int, ok bool) + func (h *Hex) Cells(dst []Cell) []Cell + func (h *Hex) Center(col, row int) (x, y float64) + func (h *Hex) Fraction(count uint32, s Scaling) float64 + func (h *Hex) Reset(radius, x0, y0, x1, y1 float64) + type Point struct + X float64 + Y float64 + func AppendECDF(dst []Point, sorted []float64) []Point + func AppendKDE(dst []Point, vs []float64, bw, lo, hi float64, n int) []Point + func AppendLoess(dst []Point, xs, ys []float64, span float64, n int) []Point + func AppendQQ(dst []Point, sorted []float64, quantile func(float64) float64) []Point + func ECDF(sorted []float64) []Point + func KDE(vs []float64, bw, lo, hi float64, n int) []Point + func Loess(xs, ys []float64, span float64, n int) []Point + func QQ(sorted []float64, quantile func(float64) float64) []Point + func Vertices(dst []Point, cx, cy, radius float64) []Point + type Ribbon struct + Dst Span + Src Span + type Sankey struct + Cyclic bool + Flows []SankeyFlow + Layers int + Nodes []SankeyNode + func (s *Sankey) Reset(from, to []int, value []float64, nodes int, pad float64) + type SankeyFlow struct + DstHi float64 + DstLo float64 + SrcHi float64 + SrcLo float64 + type SankeyNode struct + Hi float64 + Layer int + Lo float64 + Value float64 + type Scaling uint8 + const Linear + const Log + const Sqrt + type Span struct + Hi float64 + Lo float64 + func (s Span) Width() float64 + type StackMode uint8 + const StackFill + const StackSilhouette + const StackWiggle + const StackZero + type Tile struct + X0 float64 + X1 float64 + Y0 float64 + Y1 float64 + func AppendSquarify(dst []Tile, values []float64, x0, y0, x1, y1 float64) []Tile + func Squarify(values []float64, x0, y0, x1, y1 float64) []Tile