function SaveAxisLimits % SaveAxisLimits.m % Author: Alexander Khaustov; alexander dot khaustov at gmail dot com % Copyright (C) 2008 St.-Petersburg Institute of Cardiological Technics (Incart), www.incart.ru % This software is released under the terms of the GNU General % Public License (http://www.gnu.org/copyleft/gpl.html). % % Saves axis limits for the current axes to restore later % Save axis limits global currlimX currlimY currlimX = []; if length(get(gca, 'Children')) currlimX = get(gca, 'XLim'); currlimY = get(gca, 'YLim'); end; return;