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

Method x

plotter/image.go:115–120  ·  view source on GitHub ↗
(c int)

Source from the content-addressed store, hash-verified

113}
114
115func (img *Image) x(c int) float64 {
116 if c >= img.cols || c < 0 {
117 panic("plotter/image: illegal range")
118 }
119 return img.xmin + float64(c)*img.dx
120}
121
122func (img *Image) y(r int) float64 {
123 if r >= img.rows || r < 0 {

Callers 1

transformForMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected