(frm tree.Node)
| 63 | } |
| 64 | |
| 65 | func (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. |
nothing calls this directly
no test coverage detected