Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Axis

type Axis struct {
	// contains filtered or unexported fields
}

func (Axis) Layout

func (a Axis) Layout(bbox f32.Rectangle, gtx *layout.Context)

type Canvas

type Canvas struct {
}

type Edge

type Edge struct {
	A, B int
}

type Fn

type Fn func(x float32) float32

type Function

type Function struct {
	F Fn
}

type Line

type Line struct {
	Points XYs
}

func (Line) Plot

func (l Line) Plot(gtx *layout.Context)

type LinePoint

type LinePoint struct {
}

type Network

type Network struct {
	Nodes []Node
	Edges []Edge
}

func (Network) Layout

func (n Network) Layout(gtx *layout.Context)

type Node

type Node struct {
	ID int
}

type Normalizer

type Normalizer interface {
	// Normalize transforms a value x in the data coordinate system to
	// the normalized coordinate system.
	Normalize(min, max, x float32) float32
}

    Normalizer rescales values from the data coordinate system to the normalized coordinate system.

    type Pie

    type Pie struct {
    	Numbers []int
    	Colors  []color.RGBA
    }

    type Plot

    type Plot struct {
    	XAxis, YXXis Axis
    	Plots        []Plotter
    }

    func (*Plot) Add

    func (p *Plot) Add(plotter Plotter)

    func (Plot) Layout

    func (p Plot) Layout(gtx *layout.Context)

    type Plotter

    type Plotter interface {
    	Plot(gtx *layout.Context)
    }

    type XYs

    type XYs []f32.Point

    Directories

    Path Synopsis
    Package plotter defines a variety of standard Plotters for the plot package.
    Package plotter defines a variety of standard Plotters for the plot package.