PlotData controlls the deletion of data sources