Index: /issm/trunk-jpl/src/m/plot/plot_scatter.m
===================================================================
--- /issm/trunk-jpl/src/m/plot/plot_scatter.m	(revision 21932)
+++ /issm/trunk-jpl/src/m/plot/plot_scatter.m	(revision 21933)
@@ -8,4 +8,5 @@
 %      'caxis'      : default is full range
 %      'MarkerSize' : default is 3
+%      'subset'     : only plot the indices provided
 %      'Line'       : use line instead of circles
 %      'Cutoff'     : cut the line if the distance between 2 points is
@@ -21,4 +22,11 @@
 if numel(x)~=numel(y) | numel(x)~=numel(level),
 	error('x, y and data should have the same size');
+end
+
+if exist(options,'subset'),
+	pos=getfieldvalue(options,'subset');
+	x=x(pos);
+	y=y(pos);
+	level=level(pos);
 end
 
@@ -59,4 +67,5 @@
 else
 	palette=getcolormap(options);
+	colormap(palette);
 	numcolors=size(palette,1);
 	levels=round_ice(linspace(Min,Max,numcolors+1),2);
@@ -76,5 +85,6 @@
 	for i=1:numcolors
 		pos=find(colorind==i);
-		hprime=plot3(x(pos),y(pos),ones(size(x(pos))),...
+	%	hprime=plot3(x(pos),y(pos),ones(size(x(pos))),...
+		hprime=plot(x(pos),y(pos),...
 			'o','MarkerSize',getfieldvalue(options,'MarkerSize',3),'MarkerEdgeColor',palette(i,:),...
 			'MarkerFaceColor',palette(i,:));
