Index: /issm/branches/trunk-larour-SLPS2022/src/m/plot/applyoptions.m
===================================================================
--- /issm/branches/trunk-larour-SLPS2022/src/m/plot/applyoptions.m	(revision 27133)
+++ /issm/branches/trunk-larour-SLPS2022/src/m/plot/applyoptions.m	(revision 27134)
@@ -542,4 +542,6 @@
 	x=field(:,1);
 	y=field(:,2);
+	if isa(md.mesh,'mesh3dsurface'), z=field(:,3); end
+
 	%unit multiplier:
 	if exist(options,'unit'),
@@ -547,6 +549,12 @@
 		x=x*unit;
 		y=y*unit;
-	end
-	hold on,p=plot(x,y,'k.');
+		if isa(md.mesh,'mesh3dsurface'), z=z*unit; end
+	end
+	hold on;
+	if isa(md.mesh,'mesh3dsurface'), 
+		p=plot3(x,y,z,'k.');
+	else
+		p=plot(x,y,'k.');
+	end
 	markersize=getfieldvalue(options,'markersize',12);
 	color=getfieldvalue(options,'cloudcolor','k');
