Documentation ¶
Index ¶
- func DisplayPlot(p *plot.Plot) error
- func DisplayPlotExportable(p *plot.Plot, exportDir string) error
- func DisplayPlotExternal(p *plot.Plot, width, height vg.Length) (err error)
- func SavePlot(p *plot.Plot, width, height vg.Length, path string, format string) error
- func WriteClosePlot(p *plot.Plot, width, height vg.Length, output io.WriteCloser, format string) (err error)
- func WritePlot(p *plot.Plot, width, height vg.Length, output io.Writer, format string) error
- type Activity
- type Marker
- type PlotWidget
- func (p *PlotWidget) Export()
- func (p *PlotWidget) ForwardTransform(axisX float64) (pixelX float32, ok bool)
- func (p *PlotWidget) GenImage(w, h vg.Length) (image.Image, vg.Rectangle)
- func (p *PlotWidget) GetImage(size image.Point) image.Image
- func (p *PlotWidget) Layout(gtx layout.Context) layout.Dimensions
- func (p *PlotWidget) OnReady(ready imageAndRegion)
- func (p *PlotWidget) ReverseTransform(pixelX float32) (axisX float64, ok bool)
- func (p *PlotWidget) ZoomOut()
- type SizeGrabber
- type TimelinePlot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayPlot ¶
func DisplayPlotExternal ¶
func WriteClosePlot ¶
Types ¶
type PlotWidget ¶
type PlotWidget struct { Plot *plot.Plot SizeGrabber *SizeGrabber BaseX plot.Axis DPI int ExportDir string AdjWidth vg.Length AdjHeight vg.Length SliderMin, SliderMax float64 // in axis units IsSettingNewSlider bool NewSliderA, NewSliderB float64 GenSliderMin, GenSliderMax float64 Busy bool Ready chan imageAndRegion Image image.Image DrawRegion vg.Rectangle }
func (*PlotWidget) Export ¶
func (p *PlotWidget) Export()
func (*PlotWidget) ForwardTransform ¶
func (p *PlotWidget) ForwardTransform(axisX float64) (pixelX float32, ok bool)
func (*PlotWidget) Layout ¶
func (p *PlotWidget) Layout(gtx layout.Context) layout.Dimensions
func (*PlotWidget) OnReady ¶
func (p *PlotWidget) OnReady(ready imageAndRegion)
func (*PlotWidget) ReverseTransform ¶
func (p *PlotWidget) ReverseTransform(pixelX float32) (axisX float64, ok bool)
func (*PlotWidget) ZoomOut ¶
func (p *PlotWidget) ZoomOut()
type SizeGrabber ¶
type TimelinePlot ¶
type TimelinePlot struct { Activities []Activity Markers []Marker Location float64 Height vg.Length LastX float64 BoxStyle draw.LineStyle TextStyle draw.TextStyle }
func NewTimelinePlot ¶
func (*TimelinePlot) DataRange ¶
func (t *TimelinePlot) DataRange() (xmin, xmax, ymin, ymax float64)
Click to show internal directories.
Click to hide internal directories.