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

Interface GridXYZ

plotter/heat.go:20–35  ·  view source on GitHub ↗

GridXYZ describes three dimensional data where the X and Y coordinates are arranged on a rectangular grid.

Source from the content-addressed store, hash-verified

18// GridXYZ describes three dimensional data where the X and Y
19// coordinates are arranged on a rectangular grid.
20type 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.

Callers 30

DimsMethod · 0.65
XMethod · 0.65
YMethod · 0.65
NewHeatMapFunction · 0.65
plotRasterizedMethod · 0.65
plotVectorizedMethod · 0.65
DataRangeMethod · 0.65
GlyphBoxesMethod · 0.65
NewHeatMapFunction · 0.65
plotRasterizedMethod · 0.65
plotVectorizedMethod · 0.65
NewContourFunction · 0.65

Implementers 4

unitGridplotter/contour_example_test.go
offsetUnitGridplotter/heat_test.go
deciGridplotter/volcano_example_test.go
offsetUnitGridpalette/moreland/example_test.go

Calls

no outgoing calls

Tested by

no test coverage detected