fixed example (now calls the renamed method for getting intervals)

This commit is contained in:
Daniel Gil 2018-06-01 10:50:15 +02:00
parent 217eb78ab4
commit c615a3d820

View File

@ -207,7 +207,7 @@ func plotData(path string, intervals interval.Intervals) error {
plots := []*Superplot{} plots := []*Superplot{}
// create Intervals plot // create Intervals plot
xysIntervals := convertToPlotterXYs(intervals.Get()) xysIntervals := convertToPlotterXYs(intervals.GetIntervals())
p1, err := createPlot("Intervals", xysIntervals, PlotTypeIntervals) p1, err := createPlot("Intervals", xysIntervals, PlotTypeIntervals)
if err != nil { if err != nil {
return fmt.Errorf("could not create plot: %v", err) return fmt.Errorf("could not create plot: %v", err)