function yax=yaxis(y)
% set y axis to span given range
ax=axis;
if nargin>0,
	axis([ax(1) ax(2) y(1) y(end)]);
end

if nargout>0, yax=ax(3:4); end

