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

Method CopyFieldsFrom

plot/plotcore/ploteditor.go:65–74  ·  view source on GitHub ↗
(frm tree.Node)

Source from the content-addressed store, hash-verified

63}
64
65func (pl *PlotEditor) CopyFieldsFrom(frm tree.Node) {
66 fr := frm.(*PlotEditor)
67 pl.Frame.CopyFieldsFrom(&fr.Frame)
68 pl.Options = fr.Options
69 pl.setIndexView(fr.table)
70 mx := min(len(pl.Columns), len(fr.Columns))
71 for i := 0; i < mx; i++ {
72 *pl.Columns[i] = *fr.Columns[i]
73 }
74}
75
76// NewSubPlot returns a [PlotEditor] with its own separate [core.Toolbar],
77// suitable for a tab or other element that is not the main plot.

Callers

nothing calls this directly

Calls 2

setIndexViewMethod · 0.95
CopyFieldsFromMethod · 0.65

Tested by

no test coverage detected