MCPcopy Create free account
hub / github.com/cogentcore/core / SetSlice

Method SetSlice

plot/plotcore/ploteditor.go:153–155  ·  view source on GitHub ↗

SetSlice sets the table to a [table.NewSliceTable] from the given slice.

(sl any)

Source from the content-addressed store, hash-verified

151// SetSlice sets the table to a [table.NewSliceTable]
152// from the given slice.
153func (pl *PlotEditor) SetSlice(sl any) *PlotEditor {
154 return pl.SetTable(errors.Log1(table.NewSliceTable(sl)))
155}
156
157// ColumnOptions returns the current column options by name
158// (to access by index, just use Columns directly).

Callers 1

TestSlicePlotEditorFunction · 0.95

Calls 3

SetTableMethod · 0.95
Log1Function · 0.92
NewSliceTableFunction · 0.92

Tested by 1

TestSlicePlotEditorFunction · 0.76