Versions in this module Expand all Collapse all v0 v0.14.0 Aug 31, 2023 Changes in this version type Axis + AutoRescale bool v0.13.0 May 12, 2023 v0.12.0 Sep 5, 2022 v0.11.0 Mar 17, 2022 v0.10.1 Jan 19, 2022 v0.10.0 Sep 27, 2021 Changes in this version type LogTicks + Prec int v0.9.0 Mar 10, 2021 Changes in this version type Legend + TextStyle text.Style type Plot + TextHandler text.Handler v0.8.1 Nov 3, 2020 v0.8.0 Sep 4, 2020 Changes in this version + var DefaultTextHandler draw.TextHandler = text.Plain type Legend + YPosition float64 v0.7.0 Feb 27, 2020 Changes in this version + var DefaultFont = "Times-Roman" + 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 + ThumbnailWidth vg.Length + Top bool + XOffs vg.Length + YOffs vg.Length + func NewLegend() (Legend, error) + 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 + func (LogTicks) Ticks(min, max float64) []Tick + type Normalizer interface + Normalize func(min, max, x float64) float64 + type Plot struct + BackgroundColor color.Color + Legend Legend + Title struct{ ... } + X Axis + Y Axis + func New() (*Plot, error) + 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