Changed plotData input format