diff m-toolbox/classes/+utils/@plottools/backupDefaultPlotSettings.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/+utils/@plottools/backupDefaultPlotSettings.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,25 @@
+% BACKUPDEFAULTPLOTSETTINGS Backup the current default plot settings.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% DESCRIPTION: BACKUPDEFAULTPLOTSETTINGS Backup the current default plot
+%              settings. This method will store the current setting in the
+%              application data 'defaultPlotSettings'.
+%
+% CALL:        backupDefaultPlotSettings()
+%
+% VERSION:     $Id: backupDefaultPlotSettings.m,v 1.1 2011/02/08 06:12:03 ingo Exp $
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+function backupDefaultPlotSettings()
+  
+  defaultPlotSettings.DefaultAxesFontSize           = get(0, 'DefaultAxesFontSize');
+  defaultPlotSettings.DefaultAxesLineWidth          = get(0, 'DefaultAxesLineWidth');
+  defaultPlotSettings.DefaultLineLineWidth          = get(0, 'DefaultLineLineWidth');
+  defaultPlotSettings.DefaultLineMarkerSize         = get(0, 'DefaultLineMarkerSize');
+  defaultPlotSettings.DefaultAxesGridLineStyle      = get(0, 'DefaultAxesGridLineStyle');
+  defaultPlotSettings.DefaultAxesMinorGridLineStyle = get(0, 'DefaultAxesMinorGridLineStyle');
+  defaultPlotSettings.DefaultAxesFontWeight         = get(0, 'DefaultAxesFontWeight');
+  setappdata(0, 'defaultPlotSettings', defaultPlotSettings);
+  
+end