Skip to content

Commit

Permalink
hplot: forward plot.Legend
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Binet <binet@cern.ch>
  • Loading branch information
sbinet committed Sep 1, 2023
1 parent d0eea6a commit 0294666
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hplot/fwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package hplot

import (
"gonum.org/v1/plot"
"gonum.org/v1/plot/plotter"
)

Expand All @@ -25,3 +26,13 @@ func NewScatter(xys plotter.XYer) (*plotter.Scatter, error) {
func NewGrid() *plotter.Grid {
return plotter.NewGrid()
}

// A Legend gives a description of the meaning of different data elements of
// the plot. Each legend entry has a name and a thumbnail, where the thumbnail
// shows a small sample of the display style of the corresponding data.
type Legend = plot.Legend

// NewLegend returns a legend with the default parameter settings.
func NewLegend() Legend {
return plot.NewLegend()
}

0 comments on commit 0294666

Please sign in to comment.