Skip to content

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

Open
@ctessum

Description

@ctessum

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions