[Dart-dev] DART/trunk Revision: 11142

dart at ucar.edu dart at ucar.edu
Wed Feb 22 16:36:37 MST 2017


thoar at ucar.edu
2017-02-22 16:36:36 -0700 (Wed, 22 Feb 2017)
160
Simply modifying the way the legend box is turned off
so newer versions of Matlab don't have a hissy fit.
Same syntax worked on everything prior to 2015a ... 




Modified: DART/releases/Lanai/matlab/BgridTotalError.m
===================================================================
--- DART/releases/Lanai/matlab/BgridTotalError.m	2017-02-22 22:03:20 UTC (rev 11141)
+++ DART/releases/Lanai/matlab/BgridTotalError.m	2017-02-22 23:36:36 UTC (rev 11142)
@@ -90,7 +90,8 @@
       s{1} = sprintf('time-mean Ensemble Mean error  = %f', mean(rmse));
       s{2} = sprintf('time-mean Ensemble Spread = %f',      mean(sprd));
 
-      h = legend(s); legend(h,'boxoff')
+      legend(s);
+      legend boxoff;
       grid on;
       xdates(pinfo.time)
       ylabel(sprintf('global-area-weighted rmse (%s)',varunits))

Modified: DART/trunk/matlab/BgridTotalError.m
===================================================================
--- DART/trunk/matlab/BgridTotalError.m	2017-02-22 22:03:20 UTC (rev 11141)
+++ DART/trunk/matlab/BgridTotalError.m	2017-02-22 23:36:36 UTC (rev 11142)
@@ -90,7 +90,8 @@
       s{1} = sprintf('time-mean Ensemble Mean error  = %f', mean(rmse));
       s{2} = sprintf('time-mean Ensemble Spread = %f',      mean(sprd));
 
-      h = legend(s); legend(h,'boxoff')
+      legend(s);
+      legend boxoff;
       grid on;
       xdates(pinfo.time)
       ylabel(sprintf('global-area-weighted rmse (%s)',varunits))


More information about the Dart-dev mailing list