function nice3d
% make 3d plots nicer by using perspective, showing bounding box, making
% axis units equal, showing grid, allow rotation by mouse dragging
xlabel('x_1'); ylabel('x_2'); zlabel('x_3')
camproj('perspective')    % undo by   camproj('orthographic')
box on                    % undo by   box off
axis tight                %

% set(gca,'XTickMode','manual','YTickMode','manual','ZTickMode','manual')
axis equal                % undo by   axis normal 
grid on                   % undo by   grid off

axis vis3d

%rotate3d on
cameratoolbar('SetMode','orbit');


