complete plotData.m