Skip to content

Commit

Permalink
tools/rw-heatmaps: fix HeatMapGrid documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Valdes <[email protected]>
  • Loading branch information
ivanvc committed Feb 1, 2024
1 parent 0ebc668 commit 5ea9bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/rw-heatmaps/pkg/chart/heatmap_grid.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ type HeatMapGrid struct {
z [][]float64 // The Z values should be arranged in a 2D slice.
}

// Len returns the number of elements in the grid.
// Dims returns the number of elements in the grid.
// It implements the plotter.GridXYZ interface.
func (h *HeatMapGrid) Dims() (int, int) {
return len(h.x), len(h.y)
}

// ValueAt returns the value of a grid cell at (c, r).
// Z returns the value of a grid cell at (c, r).
// It implements the plotter.GridXYZ interface.
func (h *HeatMapGrid) Z(c, r int) float64 {
return h.z[r][c]
Expand Down

0 comments on commit 5ea9bb7

Please sign in to comment.