diff --git a/tsg_util/plot_EXT.m b/tsg_util/plot_EXT.m new file mode 100644 index 0000000000000000000000000000000000000000..0b182ce6da36bf176aacc7817421d80cc332be21 --- /dev/null +++ b/tsg_util/plot_EXT.m @@ -0,0 +1,39 @@ +function plot_EXT( hGUI, hAxes ) +% +% Function to plot the External Data measurements +% +% Input +% ----- +% hGUI ............... Handel to the user interface +% hAxes .............. Handels to the graphic axes +% +% Output +% ------ +% + +% Retrieve named application data +% ------------------------------- +tsg = getappdata( hGUI, 'tsg_data'); + +% Plot the Salinity with the right color code +% ------------------------------------------- +axes( hAxes(1)); + +hold on; + +% Plot external salinity on TSG plot +% -------------------------------- +if ~isempty(tsg.SSPS_EXT) + plot(hAxes(1), tsg.DAYD_EXT, tsg.SSPS_EXT, 'b*'); +end + +hold off; + +axes( hAxes(2)); + +hold on; +% Plot external temperature on TSG plot +% ------------------------------------- +if ~isempty(tsg.SSTP_EXT) + plot(hAxes(1), tsg.DAYD_EXT, tsg.SSTP_EXT, 'b*'); +end \ No newline at end of file diff --git a/tsg_util/plot_WS.m b/tsg_util/plot_WS.m new file mode 100644 index 0000000000000000000000000000000000000000..7f34e84829032d486d23e114b6b661a3c84f7d27 --- /dev/null +++ b/tsg_util/plot_WS.m @@ -0,0 +1,32 @@ +function plot_WS( hGUI, hAxes ) +% +% Function to plot the Water Sample measurements +% +% Input +% ----- +% hGUI ............... Handel to the user interface +% hAxes .............. Handels to the graphic axes +% +% Output +% ------ +% + +% Retrieve named application data +% ------------------------------- +tsg = getappdata( hGUI, 'tsg_data'); + +% Plot the Salinity with the right color code +% ------------------------------------------- +axes( hAxes(1)); + + +hold on; + + +% Plot salinity sample on TSG plot +% -------------------------------- +if ~isempty(tsg.SSPS_WS) + plot(hAxes(1), tsg.DAYD_WS, tsg.SSPS_WS, 'r*'); +end + +hold off; \ No newline at end of file