fix: plot.New() call

This commit is contained in:
jar3b 2021-07-15 11:45:36 +03:00
parent 8a6e52a737
commit 313e6a6b16

View File

@ -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())