SetTable sets the table to view and does Update to update the Column list, which will also trigger a Layout and updating of the plot on next render pass. This is safe to call from a different goroutine.
(tab *table.Table)
| 143 | // and updating of the plot on next render pass. |
| 144 | // This is safe to call from a different goroutine. |
| 145 | func (pl *PlotEditor) SetTable(tab *table.Table) *PlotEditor { |
| 146 | pl.table = table.NewIndexView(tab) |
| 147 | pl.Update() |
| 148 | return pl |
| 149 | } |
| 150 | |
| 151 | // SetSlice sets the table to a [table.NewSliceTable] |
| 152 | // from the given slice. |