Index: /issm/trunk-jpl/src/m/plot/plot_vertexnumbering.m
===================================================================
--- /issm/trunk-jpl/src/m/plot/plot_vertexnumbering.m	(revision 26969)
+++ /issm/trunk-jpl/src/m/plot/plot_vertexnumbering.m	(revision 26970)
@@ -20,6 +20,13 @@
 
 	%numbering
-	text(x,y,z,num2str(vertexnumbers),...
-		'backgroundcolor',[0.8 0.9 0.8],'HorizontalAlignment','center','VerticalAlignment','middle');
+	X   = x;
+	Y   = y;
+	NUM = vertexnumbers;
+	if exist(options,'axis')
+		AXIS = getfieldvalue(options,'axis');
+		pos = find(X>AXIS(1) & X<AXIS(2) & Y>AXIS(3) & Y<AXIS(4));
+		X = X(pos); Y=Y(pos); NUM=NUM(pos);
+	end
+	text(X,Y,num2str(NUM),'backgroundcolor',[0.8 0.9 0.8],'HorizontalAlignment','center','VerticalAlignment','middle');
 
 	%Highlight
@@ -45,6 +52,14 @@
 
 	%numbering
-	text(x,y,z,num2str(vertexnumbers),...
-		'backgroundcolor',[0.8 0.9 0.8],'HorizontalAlignment','center','VerticalAlignment','middle');
+	X   = x;
+	Y   = y;
+	Z   = z;
+	NUM = vertexnumbers;
+	if exist(options,'axis')
+		AXIS = getfieldvalue(options,'axis');
+		pos = find(X>AXIS(1) & X<AXIS(2) & Y>AXIS(3) & Y<AXIS(4));
+		X = X(pos); Y=Y(pos); Z=Z(pos); NUM=NUM(pos);
+	end
+	text(X,Y,Z,num2str(NUM),'backgroundcolor',[0.8 0.9 0.8],'HorizontalAlignment','center','VerticalAlignment','middle');
 
 	%Highlight
