Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 18 lines (16 sloc) 356 Bytes
function set_axes(ax)
% This function sets the axis of a figure to be equal and tight. It also
% ensures that the y axis is pointing upward.
%
% INPUTS:
% ax: handle to the axes of the figure
%
% OUTPUTS:
% None
%
% AUTHOR:
% Lalit Rajendran (lrajendr@purdue.edu)
axis(ax, 'equal');
axis(ax, 'tight');
set(gca, 'ydir', 'normal');
end