view m-toolbox/classes/+utils/@plottools/backupDefaultPlotSettings.m @ 42:f90d4f666cc7 database-connection-manager

Cleanup
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 18:04:34 +0100
parents f0afece42f48
children
line wrap: on
line source

% 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