[Dart-dev] [3222] DART/trunk/diagnostics/matlab:
improved plot layout for arbitrary number of regions
thoar at subversion.ucar.edu
thoar at subversion.ucar.edu
Mon Feb 11 23:04:48 MST 2008
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/dart-dev/attachments/20080211/a35e9936/attachment.html
-------------- next part --------------
Modified: DART/trunk/diagnostics/matlab/fit_ens_bias_vertical.m
===================================================================
--- DART/trunk/diagnostics/matlab/fit_ens_bias_vertical.m 2008-02-11 20:52:01 UTC (rev 3221)
+++ DART/trunk/diagnostics/matlab/fit_ens_bias_vertical.m 2008-02-12 06:04:47 UTC (rev 3222)
@@ -107,7 +107,7 @@
% plot by region
- figure(ivar); clf;
+ figure(ivar); orient landscape; clf; wysiwyg
for iregion = 1:length(Regions),
plotdat.title = Regions{iregion};
Modified: DART/trunk/diagnostics/matlab/fit_ens_mean_time.m
===================================================================
--- DART/trunk/diagnostics/matlab/fit_ens_mean_time.m 2008-02-11 20:52:01 UTC (rev 3221)
+++ DART/trunk/diagnostics/matlab/fit_ens_mean_time.m 2008-02-12 06:04:47 UTC (rev 3222)
@@ -116,7 +116,7 @@
% plot each region
- figure(ivar); clf;
+ figure(ivar); orient tall; clf; wysiwyg
for iregion = 1:length(Regions),
plotdat.title = Regions{iregion};
@@ -157,11 +157,7 @@
gmean = mean(yp(isfinite(yp))); gstring = sprintf('guess; mean=%.3f',gmean);
amean = mean(ya(isfinite(ya))); astring = sprintf('analysis; mean=%.3f',amean);
-if ( plotdat.nregions > 2 )
- subplot(2,2,plotdat.region)
-else
- subplot(plotdat.nregions,1,plotdat.region)
-end
+subplot(plotdat.nregions,1,plotdat.region)
plot(xp,yp,'k+-',xa,ya,'ro-','LineWidth',1.5)
grid
Modified: DART/trunk/diagnostics/matlab/fit_ens_mean_vertical.m
===================================================================
--- DART/trunk/diagnostics/matlab/fit_ens_mean_vertical.m 2008-02-11 20:52:01 UTC (rev 3221)
+++ DART/trunk/diagnostics/matlab/fit_ens_mean_vertical.m 2008-02-12 06:04:47 UTC (rev 3222)
@@ -103,7 +103,7 @@
% plot by region
- figure(ivar); clf;
+ figure(ivar); orient landscape; clf; wysiwyg
for iregion = 1:length(Regions),
plotdat.title = Regions{iregion};
Modified: DART/trunk/diagnostics/matlab/fit_ens_spread_time.m
===================================================================
--- DART/trunk/diagnostics/matlab/fit_ens_spread_time.m 2008-02-11 20:52:01 UTC (rev 3221)
+++ DART/trunk/diagnostics/matlab/fit_ens_spread_time.m 2008-02-12 06:04:47 UTC (rev 3222)
@@ -119,7 +119,7 @@
% plot each region
- figure(ivar); clf;
+ figure(ivar); orient tall; clf; wysiwyg
for iregion = 1:length(Regions),
plotdat.title = Regions{iregion};
@@ -165,11 +165,7 @@
gmean = mean(yp_spread(isfinite(yp_spread))); gstring = sprintf('guess; mean=%.3f',gmean);
amean = mean(ya_spread(isfinite(ya_spread))); astring = sprintf('analysis; mean=%.3f',amean);
-if ( plotdat.nregions > 2 )
- subplot(2,2,plotdat.region)
-else
- subplot(plotdat.nregions,1,plotdat.region)
-end
+subplot(plotdat.nregions,1,plotdat.region)
plot(xp, yp_spread, 'k+-', xa, ya_spread, 'ro-', 'LineWidth', 1.5)
grid
Modified: DART/trunk/diagnostics/matlab/fit_mean_spread_time.m
===================================================================
--- DART/trunk/diagnostics/matlab/fit_mean_spread_time.m 2008-02-11 20:52:01 UTC (rev 3221)
+++ DART/trunk/diagnostics/matlab/fit_mean_spread_time.m 2008-02-12 06:04:47 UTC (rev 3222)
@@ -116,7 +116,7 @@
% plot by region
- figure(ivar); clf;
+ figure(ivar); orient tall; clf; wysiwyg
for iregion = 1:plotdat.nregions,
plotdat.title = Regions{iregion};
@@ -165,11 +165,7 @@
ens_spread(2*itime ) = a(itime,counts);
end
-if ( plotdat.nregions > 2 )
- subplot(2,2,plotdat.region)
-else
- subplot(plotdat.nregions,1,plotdat.region)
-end
+subplot(plotdat.nregions,1,plotdat.region)
% Since the mean and the spread are getting plotted
% on the same figure, we should have two axes ...
Modified: DART/trunk/diagnostics/matlab/obs_num_time.m
===================================================================
--- DART/trunk/diagnostics/matlab/obs_num_time.m 2008-02-11 20:52:01 UTC (rev 3221)
+++ DART/trunk/diagnostics/matlab/obs_num_time.m 2008-02-12 06:04:47 UTC (rev 3222)
@@ -108,7 +108,7 @@
page1 = 2*(ivar-1)+1;
page2 = 2*(ivar-1)+2;
- figure(page1); clf;
+ figure(page1); orient tall; clf; wysiwyg
for iregion = 1:plotdat.nregions,
plotdat.title = Regions{iregion};
@@ -190,11 +190,7 @@
yp_num = p(:,count);
-if ( plotdat.nregions > 2 )
- subplot(2,2,plotdat.region)
-else
- subplot(plotdat.nregions,1,plotdat.region)
-end
+subplot(plotdat.nregions,1,plotdat.region)
plot(xp,yp_num,plotdat.ptype,'LineWidth',2.0)
axis([min(xp) max(xp) -Inf Inf])
Modified: DART/trunk/diagnostics/matlab/obs_num_vertical.m
===================================================================
--- DART/trunk/diagnostics/matlab/obs_num_vertical.m 2008-02-11 20:52:01 UTC (rev 3221)
+++ DART/trunk/diagnostics/matlab/obs_num_vertical.m 2008-02-12 06:04:47 UTC (rev 3222)
@@ -92,7 +92,7 @@
page1 = 2*(ivar-1)+1;
page2 = 2*(ivar-1)+2;
- figure(page1); clf;
+ figure(page1); orient landscape; clf; wysiwyg
for iregion = 1:length(Regions),
plotdat.title = Regions{iregion};
More information about the Dart-dev
mailing list