plot: github.com/sksullivan/plot/vg/vgeps Index | Files

package vgeps

import "github.com/sksullivan/plot/vg/vgeps"

Package vgeps implements the vg.Canvas interface using encapsulated postscript.

Index

Package Files

vgeps.go

type Canvas Uses

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

func New Uses

func New(w, h vg.Length) *Canvas

New returns a new Canvas.

func NewTitle Uses

func NewTitle(w, h vg.Length, title string) *Canvas

NewTitle returns a new Canvas with the given title string.

func (*Canvas) DPI Uses

func (e *Canvas) DPI() float64

func (*Canvas) Fill Uses

func (e *Canvas) Fill(path vg.Path)

func (*Canvas) FillString Uses

func (e *Canvas) FillString(fnt vg.Font, x, y vg.Length, str string)

func (*Canvas) Pop Uses

func (e *Canvas) Pop()

func (*Canvas) Push Uses

func (e *Canvas) Push()

func (*Canvas) Rotate Uses

func (e *Canvas) Rotate(r float64)

func (*Canvas) Scale Uses

func (e *Canvas) Scale(x, y float64)

func (*Canvas) SetColor Uses

func (e *Canvas) SetColor(c color.Color)

func (*Canvas) SetLineDash Uses

func (e *Canvas) SetLineDash(dashes []vg.Length, o vg.Length)

func (*Canvas) SetLineWidth Uses

func (e *Canvas) SetLineWidth(w vg.Length)

func (*Canvas) Size Uses

func (c *Canvas) Size() (w, h vg.Length)

func (*Canvas) Stroke Uses

func (e *Canvas) Stroke(path vg.Path)

func (*Canvas) Translate Uses

func (e *Canvas) Translate(x, y vg.Length)

func (*Canvas) WriteTo Uses

func (e *Canvas) WriteTo(w io.Writer) (int64, error)

WriteTo writes the canvas to an io.Writer.

Package vgeps imports 8 packages (graph) and is imported by 1 packages. Updated 2016-08-04. Refresh now. Tools for package owners.