6
"github.com/Arafatk/glot"
7
"github.com/RB-PRO/ssa/pkg/graph"
10
func Test2D_plot(t *testing.T) {
11
x := []float64{0.0, 1.0, 2.0, 3.0, 4.0}
12
y := []float64{0.0, 4.0, 2.0, 1.0, 3.0}
13
err := graph.MakeGraphYX_float64(x, y, "", "2d.png")
18
func Test2DD(t *testing.T) {
20
x := []float64{0.0, 1.0, 2.0, 3.0, 4.0}
21
y := []float64{0.0, 1.0, 4.0, 9.0, 16.0}
27
plot, err := glot.NewPlot(dimensions, persist, debug)
33
err = plot.AddPointGroup("SimplePlot", "lines", [][]float64{x, y})
39
err = plot.SavePlot("D:\\Desktop\\Work\\program\\go\\src\\github.com\\RB-PRO\\ssa\\pkg\\graph\\2.png")
46
func Test2ddd(t *testing.T) {
50
plot, _ := glot.NewPlot(dimensions, persist, debug)
51
plot.AddPointGroup("Sample 1", "lines", []float64{2, 3, 4, 1})
52
plot.SetTitle("Test Results")
54
plot.SavePlot("1.png")