Versions in this module Expand all Collapse all v0 v0.0.2 Mar 5, 2022 v0.0.1 Mar 5, 2022 Changes in this version + var DefaultFont = font.Font + var DefaultTextHandler text.Handler + var UTCUnixTime = UnixTimeIn(time.UTC) + func Align(plots [][]*Plot, t draw.Tiles, dc draw.Canvas) [][]draw.Canvas + func UnixTimeIn(loc *time.Location) func(t float64) time.Time + func Version() (version, sum string) + type Axis struct + Label struct{ ... } + Max float64 + Min float64 + Padding vg.Length + Scale Normalizer + Tick struct{ ... } + func (a Axis) Norm(x float64) float64 + type ConstantTicks []Tick + func (ts ConstantTicks) Ticks(float64, float64) []Tick + type DataRanger interface + DataRange func() (xmin, xmax, ymin, ymax float64) + type DefaultTicks struct + func (DefaultTicks) Ticks(min, max float64) []Tick + type GlyphBox struct + X float64 + Y float64 + type GlyphBoxer interface + GlyphBoxes func(*Plot) []GlyphBox + type InvertedScale struct + func (is InvertedScale) Normalize(min, max, x float64) float64 + type Legend struct + Left bool + Padding vg.Length + TextStyle text.Style + ThumbnailWidth vg.Length + Top bool + XOffs vg.Length + YOffs vg.Length + YPosition float64 + func NewLegend() Legend + func (l *Legend) Add(name string, thumbs ...Thumbnailer) + func (l *Legend) Draw(c draw.Canvas) + func (l *Legend) Rectangle(c draw.Canvas) vg.Rectangle + type LinearScale struct + func (LinearScale) Normalize(min, max, x float64) float64 + type LogScale struct + func (LogScale) Normalize(min, max, x float64) float64 + type LogTicks struct + Prec int + func (t LogTicks) Ticks(min, max float64) []Tick + type Normalizer interface + Normalize func(min, max, x float64) float64 + type Plot struct + BackgroundColor color.Color + Legend Legend + TextHandler text.Handler + Title struct{ ... } + X Axis + Y Axis + func New() *Plot + func (p *Plot) Add(ps ...Plotter) + func (p *Plot) DataCanvas(da draw.Canvas) draw.Canvas + func (p *Plot) Draw(c draw.Canvas) + func (p *Plot) DrawGlyphBoxes(c draw.Canvas) + func (p *Plot) GlyphBoxes(*Plot) (boxes []GlyphBox) + func (p *Plot) HideAxes() + func (p *Plot) HideX() + func (p *Plot) HideY() + func (p *Plot) NominalX(names ...string) + func (p *Plot) NominalY(names ...string) + func (p *Plot) Save(w, h vg.Length, file string) (err error) + func (p *Plot) Transforms(c *draw.Canvas) (x, y func(float64) vg.Length) + func (p *Plot) WriterTo(w, h vg.Length, format string) (io.WriterTo, error) + type Plotter interface + Plot func(draw.Canvas, *Plot) + type Thumbnailer interface + Thumbnail func(c *draw.Canvas) + type Tick struct + Label string + Value float64 + func (t Tick) IsMinor() bool + type Ticker interface + Ticks func(min, max float64) []Tick + type TickerFunc func(min, max float64) []Tick + func (f TickerFunc) Ticks(min, max float64) []Tick + type TimeTicks struct + Format string + Ticker Ticker + Time func(t float64) time.Time + func (t TimeTicks) Ticks(min, max float64) []Tick