GoUpdatePlot updates the display based on current IndexView into table. This version can be called from goroutines. It does Sequential() on the [table.IndexView], under the assumption that it is used for tracking a the latest updates of a running process.
()
| 273 | // the [table.IndexView], under the assumption that it is used for tracking a |
| 274 | // the latest updates of a running process. |
| 275 | func (pl *PlotEditor) GoUpdatePlot() { |
| 276 | if pl == nil || pl.This == nil { |
| 277 | return |
| 278 | } |
| 279 | if !pl.IsVisible() || pl.table == nil || pl.table.Table == nil || pl.inPlot { |
| 280 | return |
| 281 | } |
| 282 | pl.Scene.AsyncLock() |
| 283 | pl.table.Sequential() |
| 284 | pl.genPlot() |
| 285 | pl.NeedsRender() |
| 286 | pl.Scene.AsyncUnlock() |
| 287 | } |
| 288 | |
| 289 | // UpdatePlot updates the display based on current IndexView into table. |
| 290 | // It does not automatically update the [table.IndexView] unless it is |
no test coverage detected