Update to plot3 script