Documentation ¶
Overview ¶
Package plot in an internal package that plots. Used for development and debugging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GridMatrix ¶
type GridMatrix struct {
// contains filtered or unexported fields
}
GridMatrix is a type used to be able to plot a 2D matrix with Gonum's heatmap
func (GridMatrix) Dims ¶
func (g GridMatrix) Dims() (int, int)
Dims return the size of the underlying matrix
func (GridMatrix) X ¶
func (g GridMatrix) X(c int) float64
X returns the coordinate value corresponding to column c
func (GridMatrix) Y ¶
func (g GridMatrix) Y(r int) float64
Y returns the coordinate value corresponiding to the row r
func (GridMatrix) Z ¶
func (g GridMatrix) Z(c, r int) float64
Z returns the function value corresponding to the (r, c) element in the underlying matrix
Click to show internal directories.
Click to hide internal directories.