function plotmissions(time, mission, vehicle, searchterm)

% setAxesDefaults
% cog = get(0,'defaultAxesColorOrder');
% set(groot,'defaultAxesColorOrder',cog);


% co = cbrewer('qual','Dark2',12);
% co = linspecer(numel(mission.namelist),'qualitative');
% set(groot,'defaultAxesColorOrder',co);


figure;
set(gcf,'Units','normalized','Position',[0 0.3 1 0.5],... % [left bottom width height]
    'PaperPositionMode','auto')
plot(time , mission.z,'linewidth',2)
set(gca,'YDir','reverse')

ps = get(gca,'Position');

lg3 = legend(mission.namelist,'Interpreter','none','location','best');
%lg3.Position = lg3.Position;

title([vehicle ' missions (start to start) in log: ' searchterm ],...
    'fontweight','bold','fontsize',18, 'Interpreter', 'none');
ylabel('Depth (m)','fontweight','bold','fontsize',20);
xlabel('Hour (UTC)','fontweight','bold','fontsize',20);

set(gca,'Position',[0.05 ps(2) 0.9 ps(4)])
dynamicDateTicks(gca)
box on;

end
