gonum

package
v0.0.0-...-0fb5f28 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package gonum contains a Plotter implementation using the gonum/plot package(https://godoc.org/gonum.org/v1/plot).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plotter

type Plotter struct {
	TopLegend  bool
	LeftLegend bool
	// contains filtered or unexported fields
}

Plotter wraps a gonum/plot.Plot to implement Plotter.

func (*Plotter) PlotLine

func (g *Plotter) PlotLine(data map[string]plotter.NumericData, title, xLabel, yLabel string, includeLegend bool) error

PlotLine creates a line plot of the specified data.

func (*Plotter) PlotScatter

func (g *Plotter) PlotScatter(data map[string]plotter.NumericData, title, xLabel, yLabel string, includeLegend bool) error

PlotScatter creates a scatter plot of the specified data.

func (*Plotter) Save

func (g *Plotter) Save(dstWidth, dstHeight float64, dstName string) error

Save saves the plot to a file

Jump to

Keyboard shortcuts

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