%Denne lager felles setup for plot

%written by: Knut Åge Meland
%email: knutagemeland@gmail.com

%%

function figure_data= figur_setup(opt,opt2)
set(0,'defaultLineLineWidth', 2)
set(0,'DefaultAxesFontSize',25)

scrsz = get(0,'ScreenSize');

if opt == 0;
    figure('Position',[0 0 scrsz(3) scrsz(4)])
    
elseif nargin ==2 && opt2 ~=0;
    figure('Position',[0 0 scrsz(3)/opt2 scrsz(4)/opt])
else
    figure('Position',[0 0 scrsz(3) scrsz(4)/opt])

end
