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

Function TestTablePlotEditor

plot/plotcore/ploteditor_test.go:20–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestTablePlotEditor(t *testing.T) {
21 b := core.NewBody()
22
23 epc := table.NewTable("epc")
24 epc.OpenCSV("testdata/ra25epoch.tsv", table.Tab)
25
26 pl := NewPlotEditor(b)
27 pl.Options.Title = "RA25 Epoch Train"
28 pl.Options.XAxis = "Epoch"
29 // pl.Options.Scale = 2
30 pl.Options.Points = true
31 pl.SetTable(epc)
32 pl.ColumnOptions("UnitErr").On = true
33 b.AddAppBar(pl.MakeToolbar)
34 b.AssertRender(t, "table")
35}
36
37func TestSlicePlotEditor(t *testing.T) {
38 data := []Data{

Callers

nothing calls this directly

Calls 8

OpenCSVMethod · 0.95
SetTableMethod · 0.95
ColumnOptionsMethod · 0.95
AddAppBarMethod · 0.95
AssertRenderMethod · 0.95
NewBodyFunction · 0.92
NewTableFunction · 0.92
NewPlotEditorFunction · 0.85

Tested by

no test coverage detected