[Dart-dev] [3794] DART/trunk/diagnostics/matlab: changed legend print format from . 3f to .5g - should allow better comparison of small quantities.
nancy at ucar.edu
nancy at ucar.edu
Thu Mar 19 17:23:05 MDT 2009
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/dart-dev/attachments/20090319/8ead9008/attachment.html
-------------- next part --------------
Modified: DART/trunk/diagnostics/matlab/plot_bias_xxx_profile.m
===================================================================
--- DART/trunk/diagnostics/matlab/plot_bias_xxx_profile.m 2009-03-19 20:26:14 UTC (rev 3793)
+++ DART/trunk/diagnostics/matlab/plot_bias_xxx_profile.m 2009-03-19 23:23:05 UTC (rev 3794)
@@ -249,10 +249,10 @@
other_analy = NaN;
end
- str_bias_pr = sprintf('%s pr=%.3f','bias',bias_guess);
- str_bias_po = sprintf('%s po=%.3f','bias',bias_analy);
- str_other_pr = sprintf('%s pr=%.3f',plotdat.copystring,other_guess);
- str_other_po = sprintf('%s po=%.3f',plotdat.copystring,other_analy);
+ str_bias_pr = sprintf('%s pr=%.5g','bias',bias_guess);
+ str_bias_po = sprintf('%s po=%.5g','bias',bias_analy);
+ str_other_pr = sprintf('%s pr=%.5g',plotdat.copystring,other_guess);
+ str_other_po = sprintf('%s po=%.5g',plotdat.copystring,other_analy);
% Plot the bias and 'xxx' on the same (bottom) axis.
% The observation count will use the axis on the top.
Modified: DART/trunk/diagnostics/matlab/plot_evolution.m
===================================================================
--- DART/trunk/diagnostics/matlab/plot_evolution.m 2009-03-19 20:26:14 UTC (rev 3793)
+++ DART/trunk/diagnostics/matlab/plot_evolution.m 2009-03-19 23:23:05 UTC (rev 3794)
@@ -213,8 +213,8 @@
mean_post = NaN;
end
- string_guess = sprintf('guess: mean=%.3f', mean_prior);
- string_analy = sprintf('analysis: mean=%.3f', mean_post);
+ string_guess = sprintf('guess: mean=%.5g', mean_prior);
+ string_analy = sprintf('analysis: mean=%.5g', mean_post);
% Plot the requested quantity on the left axis.
% The observation count will use the axis on the right.
Modified: DART/trunk/diagnostics/matlab/plot_profile.m
===================================================================
--- DART/trunk/diagnostics/matlab/plot_profile.m 2009-03-19 20:26:14 UTC (rev 3793)
+++ DART/trunk/diagnostics/matlab/plot_profile.m 2009-03-19 23:23:05 UTC (rev 3794)
@@ -238,8 +238,8 @@
other_analy = NaN;
end
- str_other_pr = sprintf('%s pr=%.3f',plotdat.copystring,other_guess);
- str_other_po = sprintf('%s po=%.3f',plotdat.copystring,other_analy);
+ str_other_pr = sprintf('%s pr=%.5g',plotdat.copystring,other_guess);
+ str_other_po = sprintf('%s po=%.5g',plotdat.copystring,other_analy);
% Plot 'xxx' on the bottom axis.
% The observation count will use the axis on the top.
Modified: DART/trunk/diagnostics/matlab/plot_rmse_xxx_evolution.m
===================================================================
--- DART/trunk/diagnostics/matlab/plot_rmse_xxx_evolution.m 2009-03-19 20:26:14 UTC (rev 3793)
+++ DART/trunk/diagnostics/matlab/plot_rmse_xxx_evolution.m 2009-03-19 23:23:05 UTC (rev 3794)
@@ -227,8 +227,8 @@
mean_po_other = NaN;
end
- string_rmse = sprintf('%s pr=%.3f, po=%.3f','rmse', mean_pr_rmse, mean_po_rmse);
- string_other = sprintf('%s pr=%.3f, po=%.3f', plotdat.copystring, ...
+ string_rmse = sprintf('%s pr=%.5g, po=%.5g','rmse', mean_pr_rmse, mean_po_rmse);
+ string_other = sprintf('%s pr=%.5g, po=%.5g', plotdat.copystring, ...
mean_pr_other, mean_po_other);
% Plot the bias and 'xxx' on the same (left) axis.
Modified: DART/trunk/diagnostics/matlab/plot_rmse_xxx_profile.m
===================================================================
--- DART/trunk/diagnostics/matlab/plot_rmse_xxx_profile.m 2009-03-19 20:26:14 UTC (rev 3793)
+++ DART/trunk/diagnostics/matlab/plot_rmse_xxx_profile.m 2009-03-19 23:23:05 UTC (rev 3794)
@@ -249,10 +249,10 @@
other_analy = NaN;
end
- str_rmse_pr = sprintf('%s pr=%.3f','rmse',rmse_guess);
- str_rmse_po = sprintf('%s po=%.3f','rmse',rmse_analy);
- str_other_pr = sprintf('%s pr=%.3f',plotdat.copystring,other_guess);
- str_other_po = sprintf('%s po=%.3f',plotdat.copystring,other_analy);
+ str_rmse_pr = sprintf('%s pr=%.5g','rmse',rmse_guess);
+ str_rmse_po = sprintf('%s po=%.5g','rmse',rmse_analy);
+ str_other_pr = sprintf('%s pr=%.5g',plotdat.copystring,other_guess);
+ str_other_po = sprintf('%s po=%.5g',plotdat.copystring,other_analy);
% Plot the rmse and 'xxx' on the same (bottom) axis.
% The observation count will use the axis on the top.
More information about the Dart-dev
mailing list