
function makeNicePlot(xlabelName,ylabelName,titleName,Colour)
%function improves the standard matlab plots.
%change of linewidth, fontsizes size and frame

set(gcf,'PaperSize',[21 29.7],'InvertHardcopy','off','Color',[1 1 1])
set(gca,'lineWidth',2','Fontsize',20,'XminorTick','on', 'FontName','Helvetica' )

plotTypes=flipud ( findall(gcf,'Type', 'Line') ) ;
set(plotTypes,'LineWidth',2 )

for j=1:length(plotTypes)
    set(plotTypes(j),'Color',Colour(j))
end

set(findall(gcf,'Type','Marker'),'MarkerSize',3 )
xlabel(xlabelName,'FontName'   , 'AvantGarde')
ylabel(ylabelName,'FontName'   , 'AvantGarde')
title(titleName,'FontName'   , 'AvantGarde')

end