Skip to content

Commit

Permalink
hplot: add NewLinePoints forward
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Binet <[email protected]>
  • Loading branch information
sbinet committed Sep 1, 2023
1 parent b6113fa commit d41b03d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hplot/fwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ func NewLine(xys plotter.XYer) (*plotter.Line, error) {
return plotter.NewLine(xys)
}

// NewLinePoints returns both a Line and a
// Points for the given point data.
func NewLinePoints(xys plotter.XYer) (*plotter.Line, *plotter.Scatter, error) {
return plotter.NewLinePoints(xys)
}

// NewScatter returns a Scatter that uses the
// default glyph style.
func NewScatter(xys plotter.XYer) (*plotter.Scatter, error) {
Expand Down

0 comments on commit d41b03d

Please sign in to comment.