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

Method check

plotter/colorbar.go:45–52  ·  view source on GitHub ↗

check determines whether the ColorBar is valid in its current configuration.

()

Source from the content-addressed store, hash-verified

43// check determines whether the ColorBar is
44// valid in its current configuration.
45func (l *ColorBar) check() {
46 if l.ColorMap == nil {
47 panic("plotter: nil ColorMap in ColorBar")
48 }
49 if l.ColorMap.Max() == l.ColorMap.Min() {
50 panic("plotter: ColorMap Max==Min")
51 }
52}
53
54// Plot implements the Plot method of the plot.Plotter interface.
55func (l *ColorBar) Plot(c draw.Canvas, p *plot.Plot) {

Callers 2

PlotMethod · 0.95
DataRangeMethod · 0.95

Calls 2

MaxMethod · 0.65
MinMethod · 0.65

Tested by

no test coverage detected