setIndexView 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.IndexView)
| 133 | // and updating of the plot on next render pass. |
| 134 | // This is safe to call from a different goroutine. |
| 135 | func (pl *PlotEditor) setIndexView(tab *table.IndexView) *PlotEditor { |
| 136 | pl.table = tab |
| 137 | pl.Update() |
| 138 | return pl |
| 139 | } |
| 140 | |
| 141 | // SetTable sets the table to view and does Update |
| 142 | // to update the Column list, which will also trigger a Layout |