Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@plottools/restoreDefaultPlotSettings.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % RESTOREDEFAULTPLOTSETTINGS Restore the saved plot settings. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: RESTOREDEFAULTPLOTSETTINGS Restore the saved plot settings. | |
5 % This method will recover the saved plot settings which are | |
6 % stored in the application data 'defaultPlotSettings'. | |
7 % | |
8 % CALL: restoreDefaultPlotSettings() | |
9 % | |
10 % VERSION: $Id: restoreDefaultPlotSettings.m,v 1.3 2011/02/10 16:06:51 ingo Exp $ | |
11 % | |
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
13 | |
14 function restoreDefaultPlotSettings() | |
15 | |
16 plotSettings = getappdata(0,'defaultPlotSettings'); | |
17 | |
18 if ~isempty(plotSettings) | |
19 settings = fieldnames(plotSettings); | |
20 for ii = 1:numel(settings); | |
21 set(0, settings{ii}, plotSettings.(settings{ii})); | |
22 end | |
23 else | |
24 warning('LTPDA:restoreDefaultPlotSettings', '!!! No plot settings are stored'); | |
25 end | |
26 | |
27 end |