Skip to content

Commit f4e7673

Browse files
committed
fixes-336: Update axis in-code documentation
1 parent 6430bad commit f4e7673

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

axis.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import (
1515
"github.com/gonum/plot/vg/draw"
1616
)
1717

18-
// displayPrecision is a sane level of float precision for a plot.
18+
// displayPrecision default level of float precision for a plot.
1919
const displayPrecision = 4
2020

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

@@ -78,7 +78,7 @@ type Axis struct {
7878
Marker Ticker
7979

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

0 commit comments

Comments
 (0)