plot icon indicating copy to clipboard operation
plot copied to clipboard

plotter: NewPolygon should take an interface rather than a list of interfaces

Open ctessum opened this issue 6 years ago • 0 comments

Right now, plotter.NewPolygon takes ...XYer as an input. However, it seems like it is difficult to actually get data in that format.

Would it make sense to add an interface something like:

XYers interface{
    Len() int
    LenAt(int) int
    XY(int, int) (x, y float64)
}

That might be easier to implement.

ctessum avatar Apr 12 '18 04:04 ctessum