From 313e6a6b165a66dd697baf27580f08a6988a9316 Mon Sep 17 00:00:00 2001 From: jar3b Date: Thu, 15 Jul 2021 11:45:36 +0300 Subject: [PATCH] fix: plot.New() call --- plot.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plot.go b/plot.go index b56f122..45da040 100644 --- a/plot.go +++ b/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())