-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsots_ncp_7_O2_sat_plot.m
35 lines (30 loc) · 979 Bytes
/
sots_ncp_7_O2_sat_plot.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Plots oxygen saturation with temperature and gas tension
%%
% Makes a fullscreen figure
figure('units','normalized','outerposition',[0 0 1 1])
% Plots temperature on the right axis
subplot(2,1,1)
yyaxis right
plot(mooring_data.time,mooring_data.temp_C);
ylabel('Temp °C');
% Plots oxygen saturation on the left axis
yyaxis left
plot(mooring_data.time,mooring_data.dox2_sat,'LineWidth',2);
ylabel('O2 saturation');
xlim([mooring_data.time(1) mooring_data.time(end)]);
datetick('x','mmm','KeepLimits');
title('Temperature and oxygen saturation')
grid on;
% Plots gas tension on right axis
subplot(2,1,2)
yyaxis right
plot(mooring_data.time,mooring_data.gastension_Pa);
ylabel('Gas tension Pa');
% Plots oxygen saturation on the left axis
yyaxis left
plot(mooring_data.time,mooring_data.dox2_sat,'LineWidth',2);
ylabel('O2 saturation');
xlim([mooring_data.time(1) mooring_data.time(end)]);
datetick('x','mmm','KeepLimits');
title('Gas tension and oxygen saturation')
grid on;