[Dart-dev] DART/branches Revision: 13106

dart at ucar.edu dart at ucar.edu
Fri Apr 12 14:51:50 MDT 2019


thoar at ucar.edu
2019-04-12 14:51:50 -0600 (Fri, 12 Apr 2019)
132
If there is no posterior, do not plot the diamond on the axis label.
Clearer separation between colors, consistent use of symbols.




Modified: DART/branches/qc8diags/diagnostics/matlab/plot_bias_xxx_profile.m
===================================================================
--- DART/branches/qc8diags/diagnostics/matlab/plot_bias_xxx_profile.m	2019-04-10 15:23:33 UTC (rev 13105)
+++ DART/branches/qc8diags/diagnostics/matlab/plot_bias_xxx_profile.m	2019-04-12 20:51:50 UTC (rev 13106)
@@ -73,7 +73,7 @@
 
 default_obsname    = 'none';
 default_verbosity  = true;
-default_markersize = 8;
+default_markersize = 12;
 default_pause      = false;
 default_range      = [NaN NaN];
 p = inputParser;
@@ -206,8 +206,10 @@
         analy    = guess;  % make the variable the same shape as guess
         analy(:) = NaN;    % and fill it with nothing
         plotdat.has_analysis = false;
+        plotdat.post_string = '';
     else
         plotdat.has_analysis = true;
+        plotdat.post_string = '; \diamondsuit=posteriorOK';
     end
     
     % check to see if there is anything to plot
@@ -261,8 +263,13 @@
         
         psfname = sprintf('%s_bias_%s_profile_region%d', ...
             plotdat.varnames{ivar}, plotdat.copystring, iregion);
-        print(gcf,'-dpdf',psfname);
         
+        if verLessThan('matlab','R2016a')
+            print(gcf, '-dpdf', psfname);
+        else
+            print(gcf, '-dpdf', '-bestfit', psfname);
+        end
+        
         % block to go slow and look at each one ...
         if (p.Results.pause)
             disp('Pausing, hit any key to continue ...')
@@ -416,7 +423,7 @@
     'MarkerSize', figuredata.MarkerSize);
 
 set(ax2h2, 'LineStyle', 'none', ...
-    'Color',      figuredata.ges_color, ...
+    'Color',      figuredata.obs_color, ...
     'Marker',     figuredata.ges_marker, ...
     'MarkerSize', figuredata.MarkerSize);
 
@@ -423,7 +430,7 @@
 if anl_Ngood > 0
     ax2h3 = line(anl_Nused, plotdat.levels, 'Parent',ax2);
     set(ax2h3, 'LineStyle', 'none', ...
-        'Color',     figuredata.anl_color, ...
+        'Color',     figuredata.obs_color, ...
         'Marker',    figuredata.anl_marker, ...
         'MarkerSize',figuredata.MarkerSize);
 end
@@ -442,11 +449,11 @@
 % determine if the observation was flagged as 'evaluate' or 'assimilate'
 
 if sum(ges_Neval) > 0
-    string1 = sprintf('# of obs (o=possible; %s=evaluated) x %d', ...
-        '\ast,\diamondsuit', uint32(xscale));
+    string1 = sprintf('# of obs (o=possible; %s %s) x %d', ...
+        '\ast=evaluated', plotdat.post_string, uint32(xscale));
 else
-    string1 = sprintf('# of obs (o=possible; %s=assimilated) x %d', ...
-        '\ast,\diamondsuit', uint32(xscale));
+    string1 = sprintf('# of obs (o=possible; %s %s) x %d', ...
+        '\ast=assimilated', plotdat.post_string, uint32(xscale));
 end
 
 set(get(ax2,'Xlabel'), 'String', string1, 'FontSize', figuredata.fontsize)

Modified: DART/branches/qc8diags/diagnostics/matlab/plot_evolution.m
===================================================================
--- DART/branches/qc8diags/diagnostics/matlab/plot_evolution.m	2019-04-10 15:23:33 UTC (rev 13105)
+++ DART/branches/qc8diags/diagnostics/matlab/plot_evolution.m	2019-04-12 20:51:50 UTC (rev 13106)
@@ -83,7 +83,7 @@
 
 default_obsname    = 'none';
 default_verbosity  = true;
-default_markersize = 8;
+default_markersize = 12;
 default_pause      = false;
 default_range      = [NaN NaN];
 default_level      = -1;
@@ -216,7 +216,7 @@
     else
         plotdat.level       = ncread(fname, dimnames{2});
         plotdat.level_units = nc_read_att(fname, dimnames{2}, 'units');
-        nlevels             = length(plotdat.level); 
+        nlevels             = length(plotdat.level);
         if (p.Results.level < 0 )
             % use all the levels
         elseif (p.Results.level > 0 && p.Results.level < nlevels)
@@ -235,8 +235,10 @@
         analy = guess;
         analy(:) = NaN;
         has_posterior = false;
+        plotdat.post_string = '';


More information about the Dart-dev mailing list