Mercurial > hg > ltpda
view m-toolbox/classes/@LTPDAprefs/setApplicationData.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 |
parents | f0afece42f48 |
children |
line wrap: on
line source
% SETAPPLICATIONDATA sets the application data from the preferences object. % % Call: LTPDAprefs.setApplicationData() % % Parameters: % prefs - preferences object % % Version: % $Id: setApplicationData.m,v 1.1 2010/11/30 17:39:03 ingo Exp $ % function setApplicationData() set(0,'DefaultAxesFontSize', LTPDAprefs.axesFontSize); set(0,'DefaultAxesLineWidth', LTPDAprefs.axesLineWidth); set(0,'DefaultLineLineWidth', LTPDAprefs.lineLineWidth); set(0,'defaultlinemarkersize', LTPDAprefs.lineMarkerSize); set(0,'DefaultAxesGridLineStyle', LTPDAprefs.gridStyle); set(0,'DefaultAxesMinorGridLineStyle', LTPDAprefs.minorGridStyle); val = LTPDAprefs.axesFontWeight; if strcmpi(val, 'Plain') set(0, 'DefaultAxesFontWeight', 'normal'); elseif strcmpi(val, 'Bold') set(0, 'DefaultAxesFontWeight', 'bold'); elseif strcmpi(val, 'Italic') set(0, 'DefaultAxesFontWeight', 'light'); elseif strcmpi(val, 'Bold Italic') set(0, 'DefaultAxesFontWeight', 'demi'); else error('### Unknown value (%s) for the default axes property ''FontWeight''', char(val)); end end