plot

package
v0.1.1-0...-345adea Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Regular10 font.Face

Functions

func Label

func Label(img draw.Image, x, y int, label string, c color.Color, face font.Face)

func Line

func Line(img draw.Image, a, b image.Point, c color.Color, width int)

Line draws a line

func Measure

func Measure(label string, face font.Face) int

func NewLabel

func NewLabel(img *image.RGBA, x, y int, label string, c color.RGBA)

func Rect

func Rect(img draw.Image, p0, p2 image.Point, c color.Color, w int)

Types

type Frame

type Frame struct {
	widget.BaseWidget
	ScopeImg *image.RGBA

	Data      [][]float64
	DataMutex sync.Mutex
	// contains filtered or unexported fields
}

Frame is a scope display in a frame

func NewFrame

func NewFrame() *Frame

NewFrame makes a scope frame

func (*Frame) CreateRenderer

func (f *Frame) CreateRenderer() fyne.WidgetRenderer

CreateRenderer gets the widget renderer for this table - internal use only

func (*Frame) MinSize

func (f *Frame) MinSize() fyne.Size

MinSize is the minimum size

Jump to

Keyboard shortcuts

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