GridXYZ describes three dimensional data where the X and Y coordinates are arranged on a rectangular grid.
| 18 | // GridXYZ describes three dimensional data where the X and Y |
| 19 | // coordinates are arranged on a rectangular grid. |
| 20 | type GridXYZ interface { |
| 21 | // Dims returns the dimensions of the grid. |
| 22 | Dims() (c, r int) |
| 23 | |
| 24 | // Z returns the value of a grid value at (c, r). |
| 25 | // It will panic if c or r are out of bounds for the grid. |
| 26 | Z(c, r int) float64 |
| 27 | |
| 28 | // X returns the coordinate for the column at the index c. |
| 29 | // It will panic if c is out of bounds for the grid. |
| 30 | X(c int) float64 |
| 31 | |
| 32 | // Y returns the coordinate for the row at the index r. |
| 33 | // It will panic if r is out of bounds for the grid. |
| 34 | Y(r int) float64 |
| 35 | } |
| 36 | |
| 37 | // HeatMap implements the Plotter interface, drawing |
| 38 | // a heat map of the values in the GridXYZ field. |
no outgoing calls
no test coverage detected