Fixed #2982 by returning the added plot line or plot band object after Axis.addPlotLine or Axis.addPlotBand. Closes #2982.