fn_axis
Contents
Syntax
ax = fn_axis([ha,]['tight|image|tightimage'][,sidefactor][,'y0|noy0'])
Description
set a nice range to axes
Input: - flag 'tight' stretch the axis while leaving a specified gap [default] 'image' set an equal ratio between x and y 'tightimage'stretch the axis as much as possible, while maintaining an equal ratio between x and y 'tightplot' streches x-axis as much as possible and leaves gaps in the y-axis - sidefactor scalar or 2-elements vector >1 but close to one: the difference with 1 indicates the small gap to leave to the side [default: 1 for 'image', 1.2 otherwise] - 'y0' flag set ymin to 0 [default] or not
Example: plot(sin(0:.01:100)) fn_axis('tight',[1 1.2])
Source
Thomas Deneux
Copyright 2010-2017