Versions in this module Expand all Collapse all v0 v0.1.1 Oct 10, 2026 v0.1.0 Oct 10, 2026 Changes in this version + func FixMinus(s string) string + func FormatTicks(f Formatter, locs []float64, vmin, vmax float64) []string + func Nonsingular(vmin, vmax, expander, tiny float64, increasing bool) (float64, float64) + type Config struct + Log bool + Major Locator + MajorFormat Formatter + Minor Locator + MinorFormat Formatter + func LinearConfig(tickSpace int) Config + func LogConfig(tickSpace int, minPos float64) Config + func (c Config) Compute(vmin, vmax float64) Ticks + type Formatter interface + Format func(x float64) string + Offset func() string + SetLocs func(locs []float64, vmin, vmax float64) + type Locator interface + TickValues func(vmin, vmax float64) []float64 + type LogFormatterSciNotation struct + Base float64 + LabelOnlyBase bool + MinorThresholds [2]float64 + func NewLogFormatterSciNotation() *LogFormatterSciNotation + func (f *LogFormatterSciNotation) Format(x float64) string + func (f *LogFormatterSciNotation) Offset() string + func (f *LogFormatterSciNotation) SetLocs(_ []float64, vmin, vmax float64) + type LogLocator struct + Base float64 + MinPos float64 + NumTicks int + Subs []float64 + SubsAll bool + SubsAuto bool + TickSpace int + func (l *LogLocator) TickValues(vmin, vmax float64) []float64 + type MaxNLocator struct + Integer bool + MinNTicks int + Nbins int + Prune string + Steps []float64 + Symmetric bool + TickSpace int + func NewAutoLocator(tickSpace int) *MaxNLocator + func (l *MaxNLocator) TickValues(vmin, vmax float64) []float64 + type ScalarFormatter struct + OffsetThreshold int + PowerLimits [2]int + Scientific bool + UnicodeMinus bool + UseMathText bool + UseOffset bool + func NewScalarFormatter() *ScalarFormatter + func (f *ScalarFormatter) Format(x float64) string + func (f *ScalarFormatter) Offset() string + func (f *ScalarFormatter) SetLocs(locs []float64, vmin, vmax float64) + type Tick struct + Label string + Loc float64 + type Ticks struct + Located []Tick + Major []Tick + Minor []Tick + Offset string