Modified plot3