%**************************************************************************
%This function writes the current figure to the plot file.
%
%Input:
%plt_file, plot file for results
%
%Zachary Wolf
%2/4/15

function [] = util_print_fig(plt_file)

%Print the current figure
orient landscape;
%orient portrait;
if strfind(plt_file, '.ps') > 0
    print(plt_file, '-append', '-dpsc', '-r300');
elseif strfind(plt_file, '.pdf') > 0
    export_fig('-append', '-pdf', '-r300', plt_file);
else
    error('Unknown plot file type');
end

%Done