Home > General-Functions > Graphics > plot_init.m

plot_init

PURPOSE ^

% plot_init: initialize visualization

SYNOPSIS ^

function varargout = plot_init

DESCRIPTION ^

% plot_init: initialize visualization

 usage: plot_init
             set Latex as default interpreter for all text props
        screensize = plot_init   
             set Latex as default interpreter for all text props and
             return screensize: 1x2 int, size of current screen [width, height]

 Susane Wenzel 09/16
 wenzel@igg.uni-bonn.de

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %% plot_init: initialize visualization
0002 %
0003 % usage: plot_init
0004 %             set Latex as default interpreter for all text props
0005 %        screensize = plot_init
0006 %             set Latex as default interpreter for all text props and
0007 %             return screensize: 1x2 int, size of current screen [width, height]
0008 %
0009 % Susane Wenzel 09/16
0010 % wenzel@igg.uni-bonn.de
0011 
0012 function varargout = plot_init
0013 
0014 if verLessThan('matlab', '8')
0015 else
0016 %     set Latex as default interpreter for all text props
0017     set(0, 'defaulttextinterpreter','latex');
0018     set(0, 'defaultAxesTickLabelInterpreter','latex');
0019     set(0, 'defaultLegendInterpreter','latex');
0020 end
0021 
0022 if nargout==1
0023     % get current screensize, for proper positioning of figures
0024     screensize = get(0,'ScreenSize'); screensize = screensize(3:4);
0025     varargout = {screensize};
0026 end
0027

Generated on Sat 21-Jul-2018 20:56:10 by m2html © 2005