Index: ../trunk-jpl/src/m/plot/processdata.m
===================================================================
--- ../trunk-jpl/src/m/plot/processdata.m	(revision 19083)
+++ ../trunk-jpl/src/m/plot/processdata.m	(revision 19084)
@@ -188,6 +188,20 @@
 	data(1:density:end,:)=databak(1:density:end,:);
 	clear databak
 end
+if datatype==3,
+	%Mask?
+	if exist(options,'mask'),
+		flags=getfieldvalue(options,'mask');
+		pos=find(~flags);
+		if length(flags)==md.mesh.numberofvertices,
+			data(pos,:)=NaN;
+		elseif length(flags)==md.mesh.numberofelements
+			data(md.mesh.elements(pos,:),:)=NaN;
+		else
+			disp('plotmodel warning: mask length not supported yet (supported length are md.mesh.numberofvertices and md.mesh.numberofelements');
+		end
+	end
+end
 
 %OK, if datatype=0 error out
 if datatype==0,
