line

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PicHeight vg.Length = 5
	PicWeight vg.Length = 20

	LineSize = 0.1

	// FileType .eps, .jpg, .jpeg, .pdf, .png, .svg, .tex, .tif and .tiff.
	FileType = ".pdf"
)
View Source
var Delta float64 = 1
View Source
var SoftColors = []color.Color{
	rgb(0, 0, 0),
	rgb(241, 90, 96),
	rgb(122, 195, 106),
	rgb(90, 155, 212),
	rgb(250, 167, 91),
	rgb(158, 103, 171),
	rgb(206, 112, 88),
	rgb(215, 127, 180),
}

Functions

func AddLine

func AddLine(plt *plot.Plot, name string, pts Ys)

func AddLines

func AddLines(plt *plot.Plot, name []string, pts []Ys) error

func Color

func Color(i int) color.Color

func NewLine

func NewLine(ys Ys) *line

Types

type Ys

type Ys []float64

func (Ys) Len

func (y Ys) Len() int

func (Ys) XY

func (y Ys) XY(i int) (float64, float64)

Jump to

Keyboard shortcuts

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