plotter

package
v0.0.0-...-8dae8d1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

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

func (*Color) Colorgrad

func (c *Color) Colorgrad() (colorgrad.Color, error)

func (*Color) String

func (c *Color) String() string

func (*Color) Tcell

func (c *Color) Tcell() tcell.Color

func (*Color) Type

func (c *Color) Type() ColorType

func (*Color) UnmarshalText

func (c *Color) UnmarshalText(b []byte) error

type ColorType

type ColorType int
const (
	ColorTerminal ColorType = iota
	ColorHex
)

type PlotConfig

type PlotConfig struct {
	BoundMin    int
	BoundMax    int
	Title       string
	Unit        string
	NoBorder    bool
	NoBounds    bool
	NoValue     bool
	ColorBorder tcell.Color
	ColorsGraph []colorgrad.Color
}

type Plotter

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

func New

func New(
	screen tcell.Screen, scanner *bufio.Scanner,
	errs chan<- error, config PlotConfig,
) (*Plotter, error)

func (*Plotter) Resize

func (p *Plotter) Resize()

func (*Plotter) Run

func (p *Plotter) Run() func()

Jump to

Keyboard shortcuts

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