fix: plot.New() call
This commit is contained in:
parent
8a6e52a737
commit
313e6a6b16
5
plot.go
5
plot.go
@ -178,10 +178,7 @@ func (ip *intervalPlot) AlignPlots(plotItems []*Superplot, minLow, maxHigh int)
|
||||
}
|
||||
|
||||
func (ip *intervalPlot) CreatePlot(title string, xys plotter.XYs, plotType PlotType) (*Superplot, error) {
|
||||
p, err := plot.New()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not create plot: %v", err)
|
||||
}
|
||||
p := plot.New()
|
||||
|
||||
// Draw a grid behind the data
|
||||
p.Add(plotter.NewGrid())
|
||||
|
Loading…
x
Reference in New Issue
Block a user