fixed 3d plotting