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

Function main

examples/plot/plot.go:18–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16var tsv embed.FS
17
18func main() {
19 b := core.NewBody("Plot Example")
20
21 epc := table.NewTable("epc")
22 epc.OpenFS(tsv, "ra25epoch.tsv", table.Tab)
23
24 pl := plotcore.NewPlotEditor(b)
25 pl.Options.Title = "RA25 Epoch Train"
26 pl.Options.XAxis = "Epoch"
27 pl.Options.Points = true
28 pl.SetTable(epc)
29 pl.ColumnOptions("UnitErr").On = true
30 b.AddAppBar(pl.MakeToolbar)
31
32 b.RunMainWindow()
33}

Callers

nothing calls this directly

Calls 8

OpenFSMethod · 0.95
SetTableMethod · 0.95
ColumnOptionsMethod · 0.95
AddAppBarMethod · 0.95
RunMainWindowMethod · 0.95
NewBodyFunction · 0.92
NewTableFunction · 0.92
NewPlotEditorFunction · 0.92

Tested by

no test coverage detected