Index: /issm/trunk-jpl/src/m/plot/applyoptions.m
===================================================================
--- /issm/trunk-jpl/src/m/plot/applyoptions.m	(revision 22188)
+++ /issm/trunk-jpl/src/m/plot/applyoptions.m	(revision 22189)
@@ -392,6 +392,10 @@
 
 %flag edges of a partition
-if exist(options,'partitionedges')
-	[xsegments ysegments]=flagedges(md.mesh.elements,md.mesh.x,md.mesh.y,md.qmu.partition);
+if exist(options,'partitionedges') & ~strcmp(getfieldvalue(options,'partitionedges','off'),'off')
+	mdp=getfieldvalue(options,'partitionedges','off');
+	if ischar(mdp)
+		mdp=md;
+	end
+	[xsegments ysegments]=flagedges(mdp.mesh.elements,mdp.mesh.x,mdp.mesh.y,mdp.qmu.partition);
 	xsegments=xsegments*getfieldvalue(options,'unit',1);
 	ysegments=ysegments*getfieldvalue(options,'unit',1);
@@ -400,5 +404,9 @@
 	hold on;
 	for i=1:length(xsegments),
-		plot(xsegments(i,:),ysegments(i,:),color,'LineWidth',linewidth);
+		if (isnumeric(color))
+			h=plot(xsegments(i,:),ysegments(i,:),'Color',color,'LineWidth',linewidth);
+		else
+			plot(xsegments(i,:),ysegments(i,:),color,'LineWidth',linewidth);
+		end
 	end
 end
