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

Method GoUpdatePlot

plot/plotcore/ploteditor.go:275–287  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

273// the [table.IndexView], under the assumption that it is used for tracking a
274// the latest updates of a running process.
275func (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

Callers 1

MakeToolbarMethod · 0.95

Calls 6

genPlotMethod · 0.95
AsyncLockMethod · 0.80
SequentialMethod · 0.80
NeedsRenderMethod · 0.80
AsyncUnlockMethod · 0.80
IsVisibleMethod · 0.65

Tested by

no test coverage detected