Skip to content

Commit

Permalink
fixes-336: Update axis in-code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGamba committed Sep 16, 2017
1 parent 6430bad commit f4e7673
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions axis.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import (
"github.com/gonum/plot/vg/draw"
)

// displayPrecision is a sane level of float precision for a plot.
// displayPrecision default level of float precision for a plot.
const displayPrecision = 4

// Ticker creates Ticks in a specified range
type Ticker interface {
// Ticks returns Ticks in a specified range and formatted according to the
// given format function.
// When no format is provided (nil) a sane default is used.
// When format is nil DefaultTickFormat is used.
Ticks(min, max float64, format func(v float64, prec int) string) []Tick
}

Expand Down Expand Up @@ -78,7 +78,7 @@ type Axis struct {
Marker Ticker

// Format function used to format the Axis Ticks.
// When no format is provided a sane default is used.
// When format is nil DefaultTickFormat is used.
Format func(v float64, prec int) string
}

Expand Down

0 comments on commit f4e7673

Please sign in to comment.