[Dart-dev] [4388] DART/trunk/diagnostics/matlab/plot_obs_netcdf.m: Gave the 3D continents a translucent feature to help visualize

nancy at ucar.edu nancy at ucar.edu
Tue Jun 8 15:25:48 MDT 2010


Revision: 4388
Author:   thoar
Date:     2010-06-08 15:25:48 -0600 (Tue, 08 Jun 2010)
Log Message:
-----------
Gave the 3D continents a translucent feature to help visualize
observations over land (or close to land) - sometimes these were
being masked by the solid continents (not good).
As a side-effect, the OpenGL renderer is Matlab's default for
translucent objects. This will result in printed figures at a
fixed resolution (crummy fonts) and large files. It is possible
to pick different renderers - at your own risk ...

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

-------------- next part --------------
Modified: DART/trunk/diagnostics/matlab/plot_obs_netcdf.m
===================================================================
--- DART/trunk/diagnostics/matlab/plot_obs_netcdf.m	2010-06-04 17:53:16 UTC (rev 4387)
+++ DART/trunk/diagnostics/matlab/plot_obs_netcdf.m	2010-06-08 21:25:48 UTC (rev 4388)
@@ -111,6 +111,7 @@
 
 if ( length(obsstruct.obs) < 1 ) 
    fprintf('There are no ''good'' observations to plot\n')
+   return
 else
 
    subplot('position',positions(1,:))
@@ -300,6 +301,8 @@
     y = get(h_patch(i), 'YData');
     s = size(y);
     set(h_patch(i), 'ZData', zlevel*ones(s),'FaceColor',fcolor);
+    set(h_patch(i),'AlphaDataMapping','none','FaceVertexAlphaData',0.3)
+    set(h_patch(i),'FaceAlpha',0.3)
 end
 
 if (orgholdstate == 0), hold off; end;


More information about the Dart-dev mailing list