From 3af27cee1c27863e3946336dfa20151fb4880f07 Mon Sep 17 00:00:00 2001
From: alory <gael.alory@legos.obs-mip.fr>
Date: Thu, 1 Aug 2019 19:53:46 +0200
Subject: [PATCH] Switch order of adjusted time series and error range plotting
 to better display adjusted time series

---
 tsg_util/plot_Correction.m | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tsg_util/plot_Correction.m b/tsg_util/plot_Correction.m
index 4011657..143d236 100644
--- a/tsg_util/plot_Correction.m
+++ b/tsg_util/plot_Correction.m
@@ -93,13 +93,10 @@ plot_Tsg( hMainFig, hPlotAxes, 2, tsg.DAYD, tsg.(PARA{2}), tsg.([PARA{1} '_QC'])
 
 % Plot SSPS, with no code, on axe3
 % --------------------------------
-plot_Tsg( hMainFig, hPlotAxes, 3, tsg.DAYD, tsg.([PARA{1} '_ADJUSTED']), [],...
-          [PARA{1} '_ADJUSTED'],'r','none','*',2);
-          
 plot_Tsg( hMainFig, hPlotAxes, 3, tsg.DAYD, tsg.(PARA{2}),...
           [],PARA{2},'k','none','*',2);
 
-% Plot TSG_ADJUSTED + ERROR on axe 3
+% Plot ERROR + TSG_ADJUSTED on axe 3
 % -----------------------------------
 if iERR ~= 0
   plot_Tsg( hMainFig, hPlotAxes, 3, tsg.DAYD(iERR),...
@@ -110,4 +107,7 @@ if iERR ~= 0
           [], [PARA{1} '_ADJUSTED'],'g','none','*',2);
 end
 
+plot_Tsg( hMainFig, hPlotAxes, 3, tsg.DAYD, tsg.([PARA{1} '_ADJUSTED']), [],...
+          [PARA{1} '_ADJUSTED'],'r','none','*',2);
+          
 end
-- 
GitLab