GUI Plots

Extension of the GUI library for plot widgets.


Source: pkg/lua/lib/guiplot.go | Import: guiplot

Functions


wg_plot

wg_plot(title) -> struct<guiplot.WidgetPlot>

Arguments

  • title string
Return Values

  • struct<guiplot.WidgetPlot>
plot_ticker

plot_ticker(position, label) -> struct<guiplot.PlotTicker>

Arguments

  • position float
  • label string
Return Values

  • struct<guiplot.PlotTicker>
pt_bar_h

pt_bar_h(title, data) -> struct<guiplot.PlotBarH>

Arguments

  • title string
  • data []float
Return Values

  • struct<guiplot.PlotBarH>
pt_bar

pt_bar(title, data) -> struct<guiplot.PlotBar>

Arguments

  • title string
  • data []float
Return Values

  • struct<guiplot.PlotBar>
pt_line

pt_line(title, data) -> struct<guiplot.PlotLine>

Arguments

  • title string
  • data []float
Return Values

  • struct<guiplot.PlotLine>
pt_line_xy

pt_line_xy(title, xdata, ydata) -> struct<guiplot.PlotLineXY>

Arguments

  • title string
  • xdata []float
  • ydata []float
Return Values

  • struct<guiplot.PlotLineXY>
pt_pie_chart

pt_pie_chart(labels, data, x, y, radius) -> struct<guiplot.PlotPieChart>

Arguments

  • labels []string
  • data []float
  • x float
  • y float
  • radius float
Return Values

  • struct<guiplot.PlotPieChart>
pt_scatter

pt_scatter(title, data) -> struct<guiplot.PlotScatter>

Arguments

  • title string
  • data []float
Return Values

  • struct<guiplot.PlotScatter>
pt_scatter_xy

pt_scatter_xy(title, xdata, ydata) -> struct<guiplot.PlotScatterXY>

Arguments

  • title string
  • xdata []float
  • ydata []float
Return Values

  • struct<guiplot.PlotScatterXY>
pt_custom

pt_custom(builder) -> struct<guiplot.PlotCustom>

Arguments

  • builder function()
Return Values

  • struct<guiplot.PlotCustom>

Constants


PlotFlags
  • FLAGPLOT_NONE
  • FLAGPLOT_NOTITLE
  • FLAGPLOT_NOLEGEND
  • FLAGPLOT_NOMOUSETEXT
  • FLAGPLOT_NOINPUTS
  • FLAGPLOT_NOMENUS
  • FLAGPLOT_NOBOXSELECT
  • FLAGPLOT_NOFRAME
  • FLAGPLOT_EQUAL
  • FLAGPLOT_CROSSHAIRS
  • FLAGPLOT_CANVASONLY
PlotAxis
  • PLOTAXIS_X1
  • PLOTAXIS_X2
  • PLOTAXIS_X3
  • PLOTAXIS_Y1
  • PLOTAXIS_Y2
  • PLOTAXIS_Y3
  • PLOTAXIS_COUNT
PlotAxisFlags
  • FLAGPLOTAXIS_NONE
  • FLAGPLOTAXIS_NOLABEL
  • FLAGPLOTAXIS_NOGRIDLINES
  • FLAGPLOTAXIS_NOTICKMARKS
  • FLAGPLOTAXIS_NOTICKLABELS
  • FLAGPLOTAXIS_NOINITIALFIT
  • FLAGPLOTAXIS_NOMENUS
  • FLAGPLOTAXIS_NOSIDESWITCH
  • FLAGPLOTAXIS_NOHIGHLIGHT
  • FLAGPLOTAXIS_OPPOSITE
  • FLAGPLOTAXIS_FOREGROUND
  • FLAGPLOTAXIS_INVERT
  • FLAGPLOTAXIS_AUTOFIT
  • FLAGPLOTAXIS_RANGEFIT
  • FLAGPLOTAXIS_PANSTRETCH
  • FLAGPLOTAXIS_LOCKMIN
  • FLAGPLOTAXIS_LOCKMAX
  • FLAGPLOTAXIS_LOCK
  • FLAGPLOTAXIS_NODECORATIONS
  • FLAGPLOTAXIS_AUXDEFAULT
PlotYAxis
  • PLOTYAXIS_LEFT
  • PLOTYAXIS_FIRSTONRIGHT
  • PLOTYAXIS_SECONDONRIGHT
PlotType
  • PLOT_BAR_H
  • PLOT_BAR
  • PLOT_LINE
  • PLOT_LINE_XY
  • PLOT_PIE_CHART
  • PLOT_SCATTER
  • PLOT_SCATTER_XY
  • PLOT_CUSTOM
  • PLOT_STYLE
StylePlotColorID
  • COLIDPLOT_LINE
  • COLIDPLOT_FILL
  • COLIDPLOT_MARKEROUTLINE
  • COLIDPLOT_MARKERFILL
  • COLIDPLOT_ERRORBAR
  • COLIDPLOT_FRAMEBG
  • COLIDPLOT_PLOTBG
  • COLIDPLOT_PLOTBORDER
  • COLIDPLOT_LEGENDBG
  • COLIDPLOT_LEGENDBORDER
  • COLIDPLOT_LEGENDTEXT
  • COLIDPLOT_TITLETEXT
  • COLIDPLOT_INLAYTEXT
  • COLIDPLOT_AXISTEXT
  • COLIDPLOT_AXISGRID
  • COLIDPLOT_AXISTICK
  • COLIDPLOT_AXISBG
  • COLIDPLOT_AXISBGHOVERED
  • COLIDPLOT_AXISBGACTIVE
  • COLIDPLOT_SELECTION
  • COLIDPLOT_CROSSHAIRS
StylePlotVar
  • STYLEPLOTVAR_LINEWEIGHT
  • STYLEPLOTVAR_MARKER
  • STYLEPLOTVAR_MARKERSIZE
  • STYLEPLOTVAR_FILLALPHA
  • STYLEPLOTVAR_ERRORBARSIZE
  • STYLEPLOTVAR_ERRORBARWEIGHT
  • STYLEPLOTVAR_DIGITALBITHEIGHT
  • STYLEPLOTVAR_DIGITALBITGAP
  • STYLEPLOTVAR_PLOTBORDERSIZE
  • STYLEPLOTVAR_MINORALPHA
  • STYLEPLOTVAR_MAJORTICKLEN
  • STYLEPLOTVAR_MINORTICKLEN
  • STYLEPLOTVAR_MAJORTICKSIZE
  • STYLEPLOTVAR_MINORTICKSIZE
  • STYLEPLOTVAR_MAJORGRIDSIZE
  • STYLEPLOTVAR_MINORGRIDSIZE
  • STYLEPLOTVAR_PLOTPADDING
  • STYLEPLOTVAR_LABELPADDING
  • STYLEPLOTVAR_LEGENDPADDING
  • STYLEPLOTVAR_LEGENDINNERPADDING
  • STYLEPLOTVAR_LEGENDSPACING
  • STYLEPLOTVAR_MOUSEPOSPADDING
  • STYLEPLOTVAR_ANNOTAIONPADDING
  • STYLEPLOTVAR_FITPADDING
  • STYLEPLOTVAR_PLOTDEFAULTSIZE
  • STYLEPLOTVAR_PLOTMINSIZE

Structs


WidgetPlot

Properties

  • type string<gui.WidgetType>
  • title string
Methods

axis_limits

axis_limits(self, xmin float, xmax float, ymin float, ymax float, cond int<gui.Condition>) -> self

flags

flags(self, flags int<guiplot.PlotFlags>) -> self

set_xaxis_label

set_xaxis_label(self, axis int<guiplot.PlotAxis>, label string) -> self

set_yaxis_label

set_yaxis_label(self, axis int<guiplot.PlotAxis>, label string) -> self

size

size(self, width float, height float) -> self

x_axeflags

x_axeflags(self, flags int<guiplot.PlotAxisFlags>) -> self

xticks

xticks(self, ticks []struct<guiplot.PlotTicker>, default bool) -> self

y_axeflags

y_axeflags(self, flags1 int<guiplot.PlotAxisFlags>, flags2 int<guiplot.PlotAxisFlags>, flags3 int<guiplot.PlotAxisFlags>) -> self

yticks

yticks(self, ticks []struct<guiplot.PlotTicker>) -> self

plots

plots(self, []struct<guiplot.Plot>) -> self

PlotTicker

Properties

  • position float
  • label string
PlotBarH

Properties

  • type string<guiplot.PlotType>
  • title string
  • data []float
Methods

height

height(self, height float) -> self

offset

offset(self, offset float) -> self

shift

shift(self, shift float) -> self

PlotBar

Properties

  • type string<guiplot.PlotType>
  • title string
  • data []float
Methods

width

width(self, width float) -> self

offset

offset(self, offset float) -> self

shift

shift(self, shift float) -> self

PlotLine

Properties

  • type string<guiplot.PlotType>
  • title string
  • data []float
Methods

set_plot_y_axis

set_plot_y_axis(self, axis int<guiplot.PlotYAxis>) -> self

offset

offset(self, offset float) -> self

x0

x0(self, x0 float) -> self

xscale

xscale(self, xscale float) -> self

PlotLineXY

Properties

  • type string<guiplot.PlotType>
  • title string
  • xdata []float
  • ydata []float
Methods

set_plot_y_axis

set_plot_y_axis(self, axis int<guiplot.PlotYAxis>) -> self

offset

offset(self, offset float) -> self

PlotPieChart

Properties

  • type string<guiplot.PlotType>
  • labels []string
  • data []float
  • x float
  • y float
  • radius float
Methods

angle0

angle0(self, angle0 float) -> self

label_format

label_format(self, format string) -> self

normalize

normalize(self, bool) -> self

PlotScatter

Properties

  • type string<guiplot.PlotType>
  • title string
  • data []float
Methods

offset

offset(self, offset float) -> self

x0

x0(self, x0 float) -> self

xscale

xscale(self, xscale float) -> self

PlotScatterXY

Properties

  • type string<guiplot.PlotType>
  • title string
  • xdata []float
  • ydata []float
Methods

offset

offset(self, offset float) -> self

PlotCustom

Properties

  • type string<guiplot.PlotType>
  • builder function()

Interfaces


Plot

Properties

  • type string<guiplot.PlotType>