view m-toolbox/classes/+utils/@plottools/restoreDefaultPlotSettings.m @ 35:4be5f7a5316f
database-connection-manager
Suppress output messages on preferences loading and saving
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % RESTOREDEFAULTPLOTSETTINGS Restore the saved plot settings.
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: RESTOREDEFAULTPLOTSETTINGS Restore the saved plot settings.
+ − % This method will recover the saved plot settings which are
+ − % stored in the application data 'defaultPlotSettings'.
+ − %
+ − % CALL: restoreDefaultPlotSettings()
+ − %
+ − % VERSION: $Id: restoreDefaultPlotSettings.m,v 1.3 2011/02/10 16:06:51 ingo Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function restoreDefaultPlotSettings()
+ −
+ − plotSettings = getappdata(0,'defaultPlotSettings');
+ −
+ − if ~isempty(plotSettings)
+ − settings = fieldnames(plotSettings);
+ − for ii = 1:numel(settings);
+ − set(0, settings{ii}, plotSettings.(settings{ii}));
+ − end
+ − else
+ − warning('LTPDA:restoreDefaultPlotSettings', '!!! No plot settings are stored');
+ − end
+ −
+ − end