graph

package
v3.5.3+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2014 License: CC-BY-3.0, Freetype, GPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Overview

package graph renders 2D graphs of table data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	LineStyle string  //
	TicSize   float64 // length of axis tics, in pixels
	// contains filtered or unexported fields
}

func New

func New(out io.Writer, width, height int) *Graph

func (*Graph) DrawAxes

func (g *Graph) DrawAxes(xTic, yTic float64)

func (*Graph) End

func (g *Graph) End()

func (*Graph) Line

func (g *Graph) Line(x1, y1, x2, y2 float64)

func (*Graph) Polyline

func (g *Graph) Polyline(x []float64, y []float64)

func (*Graph) Rect

func (g *Graph) Rect(x1, y1, x2, y2 float64)

Draw rectangle given its diagonal.

func (*Graph) SetMargins

func (g *Graph) SetMargins(left, right, bottom, top int)

func (*Graph) SetRanges

func (g *Graph) SetRanges(xMin, xMax, yMin, yMax float64)

Jump to

Keyboard shortcuts

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