% 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
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