plotData implemented