vis

package
v0.0.0-...-51cb45e Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dendrogram

type Dendrogram struct {
	draw.LineStyle
	// contains filtered or unexported fields
}

Dendrogram represents a dendrogram of given `ward.Tree`.

func NewDendrogram

func NewDendrogram(T ward.Tree) (*Dendrogram, error)

NewDendrogram creates a new dendrogram plotter for the given Tree.

func (*Dendrogram) DataRange

func (d *Dendrogram) DataRange() (xmin, xmax, ymin, ymax float64)

DataRange implements the DataRange method of the plot.DataRanger interface with 5% padding.

func (*Dendrogram) Plot

func (d *Dendrogram) Plot(c draw.Canvas, plt *plot.Plot)

Plot implements the Plot method of the plot.Plotter interface.

Jump to

Keyboard shortcuts

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