Closed taylori7 closed 4 years ago
I believe the issue here is that we can't append a slice of plotter.XYs with a struct of float64 literals, so I submitted a pull request to add a very simple function which will construct a plotter.XY and use that to append instead:
// XYser creates a plotter.XY slice which can be used to append onto other plotter.XY slices func XYser(i int, x, y float64) plotter.XY { anXY := plotter.XY{x, y} return anXY }
Having trouble with both e.g. but more concerned with the 2D for now.
Specifically in the 2D mnist example, at line 69 I get an error about the append having a xy literal in type plotter.XY. Did something change in the plotter lib?
(admittedly I am very new to GO and as such may be missing something basic here)