allow different implementation of PlotWidget inside PlotWithInteractiveLegend