plot

package
v0.0.0-...-a797467 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 6 Imported by: 0

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

func CMat

func CMat(path string, cmat mat.CMatrix)

CMat plots a complex matrix to an image file.

func Mat

func Mat(path string, mat mat.Matrix)

Mat plots a matrix to an image file.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL