fix a bug in plot3 for missing assign plotData