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

Method X

plotter/heat_test.go:29–35  ·  view source on GitHub ↗
(c int)

Source from the content-addressed store, hash-verified

27func (g offsetUnitGrid) Dims() (c, r int) { r, c = g.Data.Dims(); return c, r }
28func (g offsetUnitGrid) Z(c, r int) float64 { return g.Data.At(r, c) }
29func (g offsetUnitGrid) X(c int) float64 {
30 _, n := g.Data.Dims()
31 if c < 0 || c >= n {
32 panic("column index out of range")
33 }
34 return float64(c) + g.XOffset
35}
36func (g offsetUnitGrid) Y(r int) float64 {
37 m, _ := g.Data.Dims()
38 if r < 0 || r >= m {

Callers

nothing calls this directly

Calls 1

DimsMethod · 0.65

Tested by

no test coverage detected