From 78888d207963a4b27bfb7e2458b72e814761c809 Mon Sep 17 00:00:00 2001 From: Jacques Grelet <jacques.grelet@ird.fr> Date: Tue, 15 Jan 2008 08:55:37 +0000 Subject: [PATCH] =?UTF-8?q?ajout=20des=20routines=20de=20trac=C3=A9s=20pou?= =?UTF-8?q?r=20SSPS=5FWS=20et=20SSPS=5FEXT/SSTP=5FEXT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsg_util/plot_EXT.m | 39 +++++++++++++++++++++++++++++++++++++++ tsg_util/plot_WS.m | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 tsg_util/plot_EXT.m create mode 100644 tsg_util/plot_WS.m diff --git a/tsg_util/plot_EXT.m b/tsg_util/plot_EXT.m new file mode 100644 index 0000000..0b182ce --- /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 0000000..7f34e84 --- /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 -- GitLab