MCPcopy Index your code
hub / github.com/gonum/plot / DataRange

Method DataRange

plotter/colorbar.go:92–98  ·  view source on GitHub ↗

DataRange implements the DataRange method of the plot.DataRanger interface.

()

Source from the content-addressed store, hash-verified

90// DataRange implements the DataRange method
91// of the plot.DataRanger interface.
92func (l *ColorBar) DataRange() (xmin, xmax, ymin, ymax float64) {
93 l.check()
94 if l.Vertical {
95 return 0, 1, l.ColorMap.Min(), l.ColorMap.Max()
96 }
97 return l.ColorMap.Min(), l.ColorMap.Max(), 0, 1
98}

Callers

nothing calls this directly

Calls 3

checkMethod · 0.95
MinMethod · 0.65
MaxMethod · 0.65

Tested by

no test coverage detected