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

Function TestPlot

plot/plot_test.go:21–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19}
20
21func TestPlot(t *testing.T) {
22 pt := New()
23 pt.Title.Text = "Test Plot"
24 pt.X.Min = 0
25 pt.X.Max = 100
26 pt.X.Label.Text = "X Axis"
27 pt.Y.Min = 0
28 pt.Y.Max = 100
29 pt.Y.Label.Text = "Y Axis"
30
31 pt.Resize(image.Point{640, 480})
32 pt.Draw()
33 imagex.Assert(t, pt.Pixels, "plot.png")
34}

Callers

nothing calls this directly

Calls 4

AssertFunction · 0.92
NewFunction · 0.70
DrawMethod · 0.65
ResizeMethod · 0.45

Tested by

no test coverage detected