[Dart-dev] [4818] DART/trunk/diagnostics/matlab: Fixed the decision on the number of experiments in

nancy at ucar.edu nancy at ucar.edu
Fri Mar 25 11:07:47 MDT 2011


Revision: 4818
Author:   thoar
Date:     2011-03-25 11:07:47 -0600 (Fri, 25 Mar 2011)
Log Message:
-----------
Fixed the decision on the number of experiments in
the profile code ... simplified the line width setting
for the legend strings (to match the plots)

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

-------------- next part --------------
Modified: DART/trunk/diagnostics/matlab/two_experiments_evolution.m
===================================================================
--- DART/trunk/diagnostics/matlab/two_experiments_evolution.m	2011-03-25 15:43:26 UTC (rev 4817)
+++ DART/trunk/diagnostics/matlab/two_experiments_evolution.m	2011-03-25 17:07:47 UTC (rev 4818)
@@ -358,7 +358,7 @@
 function myplot( plotobj, Nrange, Drange, Yrange, figdata)
 %% myplot Creates a graphic for one region
 
-Nexp    = size(plotobj,2);
+Nexp    = length(plotobj);
 iregion = plotobj{1}.region;
     
 %% Create the background
@@ -450,13 +450,16 @@
 % Annotate - gets pretty complicated for multiple
 % regions on one page. Trying to maximize content, minimize clutter.
 
-annotate( ax1, ax2, plotobj{i}, figdata)
+annotate( ax1, ax2, plotobj{1}, figdata)
 
 lh = legend(hd,legstr);
 legend(lh,'boxoff');
 
+% The legend linesizes should match - 2 is hardwired - suprises me.
+
 set(lh,'FontSize',figdata.fontsize);
 kids = get(lh,'Children');
+set(kids,'LineWidth',2.0);
 
 
 function annotate(ax1, ax2, plotobj, figdata)

Modified: DART/trunk/diagnostics/matlab/two_experiments_profile.m
===================================================================
--- DART/trunk/diagnostics/matlab/two_experiments_profile.m	2011-03-25 15:43:26 UTC (rev 4817)
+++ DART/trunk/diagnostics/matlab/two_experiments_profile.m	2011-03-25 17:07:47 UTC (rev 4818)
@@ -357,7 +357,7 @@
 function myplot( plotobj, Nrange, Drange, Yrange, figdata)
 %% Create graphic for one region
 
-Nexp    = size(Nrange,2);
+Nexp    = length(plotobj);
 iregion = plotobj{1}.region;
     
 %% Create the background stripes, etc.
@@ -431,19 +431,18 @@
 
 % Annotate the whole thing - gets pretty complicated for multiple
 % regions on one page. Trying to maximize content, minimize clutter.
+% Any plot object will do for annotating region,levels,etc
 
-annotate( ax1, ax2, plotobj{i}, figdata)
+annotate( ax1, ax2, plotobj{1}, figdata)
 
 lh = legend(hd,legstr);
 legend(lh,'boxoff');
 
+% The legend linesizes should match - 2 is hardwired - suprises me.
+
 set(lh,'FontSize',figdata.fontsize);
 kids = get(lh,'Children');
-if (length(kids) < 8)
-   set(kids([2 5]),'LineWidth',2.0);
-else
-   set(kids([2 5 8 11]),'LineWidth',2.0);
-end
+set(kids,'LineWidth',2.0);
 
 
 function annotate(ax1, ax2, plotobj, figdata)
@@ -633,7 +632,7 @@
    plotlims(1,:) = [0.10 0.12 0.8 0.75];
 end
 
-figdata = struct('expcolors',  {{'k','r','m','g','b','c','y'}}, ...
+figdata = struct('expcolors',  {{'k','r','g','m','b','c','y'}}, ...
                  'expsymbols', {{'o','s','d','p','h','s','*'}}, ...
                  'prpolines',  {{'-',':'}}, 'plotlims', plotlims, ...
                  'fontsize',fontsize, 'orientation',orientation);


More information about the Dart-dev mailing list