(r int)
| 34 | return float64(c) |
| 35 | } |
| 36 | func (g unitGrid) Y(r int) float64 { |
| 37 | m, _ := g.Matrix.Dims() |
| 38 | if r < 0 || r >= m { |
| 39 | panic("index out of range") |
| 40 | } |
| 41 | return float64(r) |
| 42 | } |
| 43 | |
| 44 | func TestHeatMapWithContour(t *testing.T) { |
| 45 | if !*visualDebug { |