[Dart-dev] [4349] DART/trunk/diagnostics/matlab/two_experiments_profile.m: Fixed a problem for plots with all biases below zero. Tricksy.

nancy at ucar.edu nancy at ucar.edu
Mon Apr 19 09:58:44 MDT 2010


Revision: 4349
Author:   thoar
Date:     2010-04-19 09:58:44 -0600 (Mon, 19 Apr 2010)
Log Message:
-----------
Fixed a problem for plots with all biases below zero. Tricksy.

Modified Paths:
--------------
    DART/trunk/diagnostics/matlab/two_experiments_profile.m

-------------- next part --------------
Modified: DART/trunk/diagnostics/matlab/two_experiments_profile.m
===================================================================
--- DART/trunk/diagnostics/matlab/two_experiments_profile.m	2010-04-16 22:45:07 UTC (rev 4348)
+++ DART/trunk/diagnostics/matlab/two_experiments_profile.m	2010-04-19 15:58:44 UTC (rev 4349)
@@ -2,8 +2,10 @@
 %
 % Each variable gets its own figure.
 % Each region gets its own axis.
-% Multiple quantities (rmse, bias) can be plotted on same axis.
+%
+% I'm having some problems preserving the ticks on the left.
 % 
+% 
 % files = {'/ptmp/nancy/CSL/Base5/032-061s0_def_reg/obs_diag_output.nc',
 %          '/ptmp/thoar/GPS+AIRS/Sep_032-061/obs_diag_output.nc'};
 % titles = {'Base5', 'GPS+AIRS'};
@@ -280,7 +282,9 @@
 
 switch copystring
 case {'bias'}
-   plotdat.Drange = [    0    max(bob)];
+   dmin = min( [ min(bob) 0.0 ] );
+   dmax = max( [ max(bob) 0.0 ] );
+   plotdat.Drange = [ dmin dmax ];
    plotdat.xlabel = {sprintf('%s %s',copystring, plotdat.biasconv), plotdat.timespan};
 otherwise
    plotdat.Drange = [min(bob) max(bob)];
@@ -342,6 +346,7 @@
   set(hf,'FaceAlpha',0.3,'EdgeAlpha',0.3)
   set(hf,'AlphaDataMapping','none','FaceVertexAlphaData',0.3)
 end
+
 set(gca,'XGrid','on')
 hold off;
 set(h,'Visible','off')


More information about the Dart-dev mailing list