plotter

package
v0.0.0-...-08691da Latest Latest
Warning

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

Go to latest
Published: May 26, 2014 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package plotter abstracts the details of other chart packages into a simple interface composed of Figures, Charts, and Data

Index

Constants

This section is empty.

Variables

View Source
var NextStyle = autoStyle(0)

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func RenderToFile

func RenderToFile(f Figure, filename string, width, height int) error

Types

type Chart

type Chart struct {
	chart.ScatterChart
}

func (*Chart) AddData

func (ax *Chart) AddData(name string, x, y []float64, style Style) *Data

func (*Chart) ShowXAxis

func (ax *Chart) ShowXAxis(s bool)

type Data

type Data struct {
	chart.ScatterChartData
}

type Figure

type Figure interface {
	Render(writer io.Writer, width, height int) error
	AddChart(title, xlabel, ylabel string, xmin, xmax float64) *Chart
}

func NewFigure

func NewFigure(usetime bool) Figure

type Style

type Style chart.Style

Jump to

Keyboard shortcuts

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