plot

package
v0.0.0-...-ec3325a Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aes

type Aes int

Aes is the name of an aesthetic.

const (
	AesX Aes = iota
	AesY
	AesColor
	AesRow // Facet row
	AesCol // Facet column

)

func AesFromName

func AesFromName(name string) (Aes, bool)

AesFromName is the inverse of Aes.Name.

func (Aes) Name

func (a Aes) Name() string

Name returns a short name for aesthetic a, such as "x".

type Config

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

func NewConfig

func NewConfig() *Config

func (*Config) SetDV

func (c *Config) SetDV(aes Aes)

SetDV maps the dependent variable to aesthetic aes.

func (*Config) SetIV

func (c *Config) SetIV(aes Aes, iv *benchproc.Projection)

SetIV maps independent variable iv to aesthetic aes.

func (*Config) SetLogScale

func (c *Config) SetLogScale(aes Aes, base int)

SetLogScale sets the aesthetic dimension aes to use a log scale in the given base. Base 0 represents a linear scale.

type Plot

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

func NewPlot

func NewPlot(c *Config) (*Plot, error)

func (*Plot) Add

func (p *Plot) Add(rec *benchfmt.Result)

func (*Plot) Gnuplot

func (p *Plot) Gnuplot(term string, out io.Writer) error

func (*Plot) Label

func (p *Plot) Label(pt point, aes Aes) string

func (*Plot) SetUnits

func (p *Plot) SetUnits(units benchfmt.UnitMetadataMap)

func (*Plot) TransformCompare

func (p *Plot) TransformCompare() error

Jump to

Keyboard shortcuts

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