Versions in this module Expand all Collapse all v0 v0.1.4 Jun 1, 2024 v0.1.3 May 5, 2024 v0.1.2 May 1, 2024 v0.1.1 May 1, 2024 Changes in this version + const FixMax + const FixMin + const FloatMax + const FloatMin + const Off + const On + const PlotColumnsHeaderN + var PlotType = types.AddType(&types.Type{ ... }) + var PlotViewType = types.AddType(&types.Type{ ... }) + func MetaMapLower(meta map[string]string, key string) (string, bool) + type ColumnParams struct + Color color.Color + Column string + ErrColumn string + FullRange minmax.F32 + IsString bool + Lbl string + LineWidth option.Option[float32] + Lines option.Option[bool] + NTicks int + On bool + Plot *PlotView + PointShape option.Option[plots.Shapes] + PointSize option.Option[float32] + Points option.Option[bool] + Range minmax.Range32 + TensorIndex int + func (cp *ColumnParams) CopyFrom(fr *ColumnParams) + func (cp *ColumnParams) Defaults() + func (cp *ColumnParams) FromMetaMap(meta map[string]string) + func (cp *ColumnParams) Label() string + func (cp *ColumnParams) Update() + type Plot struct + Plot *plot.Plot + Scale float32 + func NewPlot(parent tree.Node, name ...string) *Plot + func (pt *Plot) HandleEvents() + func (pt *Plot) OnInit() + func (pt *Plot) Render() + func (pt *Plot) SavePNG(filename core.Filename) error + func (pt *Plot) SavePlot(filename core.Filename) error + func (pt *Plot) SetPlot(pl *plot.Plot) + func (pt *Plot) SetStyles() + func (pt *Plot) SizeFinal() + func (pt *Plot) UpdatePlot() + func (pt *Plot) WidgetTooltip() (string, image.Point) + func (t *Plot) New() tree.Node + func (t *Plot) NodeType() *types.Type + func (t *Plot) SetScale(v float32) *Plot + func (t *Plot) SetTooltip(v string) *Plot + type PlotParams struct + BarWidth float32 + LegendColumn string + LegendPosition plot.LegendPosition + LineWidth float32 + Lines bool + NegativeXDraw bool + Plot *PlotView + PointShape plots.Shapes + PointSize float32 + Points bool + Scale float32 + Title string + Type PlotTypes + XAxisColumn string + XAxisLabel string + XAxisRotation float32 + YAxisLabel string + func (pp *PlotParams) CopyFrom(fr *PlotParams) + func (pp *PlotParams) Defaults() + func (pp *PlotParams) FromMeta(dt *table.Table) + func (pp *PlotParams) FromMetaMap(meta map[string]string) + func (pp *PlotParams) Update() + type PlotTypes int32 + const Bar + const PlotTypesN + const XY + func PlotTypesValues() []PlotTypes + func (i *PlotTypes) SetInt64(in int64) + func (i *PlotTypes) SetString(s string) error + func (i *PlotTypes) UnmarshalText(text []byte) error + func (i PlotTypes) Desc() string + func (i PlotTypes) Int64() int64 + func (i PlotTypes) MarshalText() ([]byte, error) + func (i PlotTypes) String() string + func (i PlotTypes) Values() []enums.Enum + type PlotView struct + Columns []*ColumnParams + ConfigPlotFunc func() + DataFile core.Filename + InPlot bool + Params PlotParams + Plot *plot.Plot + SVGFile core.Filename + Table *table.IndexView + func NewPlotView(parent tree.Node, name ...string) *PlotView + func NewSubPlot(par core.Widget, name ...string) *PlotView + func (pl *PlotView) ColParamsTry(colNm string) (*ColumnParams, error) + func (pl *PlotView) ColumnParams(colNm string) *ColumnParams + func (pl *PlotView) ColumnsConfig() + func (pl *PlotView) ColumnsFromMetaMap(meta map[string]string) + func (pl *PlotView) ColumnsLay() *core.Frame + func (pl *PlotView) ColumnsListUpdate() + func (pl *PlotView) ColumnsUpdate() + func (pl *PlotView) Config() + func (pl *PlotView) ConfigPlot(plt *plot.Plot) + func (pl *PlotView) ConfigPlotView() + func (pl *PlotView) ConfigToolbar(tb *core.Toolbar) + func (pl *PlotView) CopyFieldsFrom(frm tree.Node) + func (pl *PlotView) DeleteColumns() + func (pl *PlotView) GenPlot() + func (pl *PlotView) GenPlotBar() + func (pl *PlotView) GenPlotXY() + func (pl *PlotView) GoUpdatePlot() + func (pl *PlotView) OnAdd() + func (pl *PlotView) OnInit() + func (pl *PlotView) OpenCSV(filename core.Filename, delim table.Delims) + func (pl *PlotView) OpenFS(fsys fs.FS, filename core.Filename, delim table.Delims) + func (pl *PlotView) PlotChild() *Plot + func (pl *PlotView) PlotXAxis(plt *plot.Plot, ixvw *table.IndexView) (xi int, xview *table.IndexView, err error) + func (pl *PlotView) SaveAll(fname core.Filename) + func (pl *PlotView) SaveCSV(fname core.Filename, delim table.Delims) + func (pl *PlotView) SavePNG(fname core.Filename) + func (pl *PlotView) SaveSVG(fname core.Filename) + func (pl *PlotView) SetAllColumns(on bool) + func (pl *PlotView) SetColParams(colNm string, on bool, fixMin bool, min float32, fixMax bool, max float32) *ColumnParams + func (pl *PlotView) SetColumnsByName(nameContains string, on bool) + func (pl *PlotView) SetTable(tab *table.Table) *PlotView + func (pl *PlotView) SetTableView(tab *table.IndexView) *PlotView + func (pl *PlotView) UpdatePlot() + func (pl *PlotView) XLabel() string + func (pl *PlotView) YLabel() string + func (pt *PlotView) SizeFinal() + func (t *PlotView) New() tree.Node + func (t *PlotView) NodeType() *types.Type + func (t *PlotView) SetConfigPlotFunc(v func()) *PlotView + func (t *PlotView) SetDataFile(v core.Filename) *PlotView + func (t *PlotView) SetParams(v PlotParams) *PlotView + func (t *PlotView) SetSVGFile(v core.Filename) *PlotView + func (t *PlotView) SetTooltip(v string) *PlotView + type TableXY struct + ErrColumn int + LabelColumn int + Table *table.IndexView + XColumn int + XIndex int + XRowSz int + YColumn int + YIndex int + YRange minmax.Range32 + YRowSz int + func NewTableXY(dt *table.IndexView, xcol, xtsrIndex, ycol, ytsrIndex int, yrng minmax.Range32) (*TableXY, error) + func NewTableXYName(dt *table.IndexView, xi, xtsrIndex int, ycol string, ytsrIndex int, ...) (*TableXY, error) + func (txy *TableXY) FilterValues() + func (txy *TableXY) Label(row int) string + func (txy *TableXY) Len() int + func (txy *TableXY) TRowValue(row int) float32 + func (txy *TableXY) TRowXValue(row int) float32 + func (txy *TableXY) Validate() error + func (txy *TableXY) Value(row int) float32 + func (txy *TableXY) XValue(row int) float32 + func (txy *TableXY) XY(row int) (x, y float32) + func (txy *TableXY) YError(row int) (float32, float32)