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

Method Y

plotter/contour_example_test.go:71–77  ·  view source on GitHub ↗
(r int)

Source from the content-addressed store, hash-verified

69 return float64(c)
70}
71func (g unitGrid) Y(r int) float64 {
72 m, _ := g.Matrix.Dims()
73 if r < 0 || r >= m {
74 panic("index out of range")
75 }
76 return float64(r)
77}
78
79func TestContour(t *testing.T) {
80 cmpimg.CheckPlotApprox(ExampleContour, t, 0.01, "contour_"+runtime.GOARCH+".png")

Callers

nothing calls this directly

Calls 1

DimsMethod · 0.65

Tested by

no test coverage detected