Index: /issm/trunk/src/m/utils/Plot/plot2patch.m
===================================================================
--- /issm/trunk/src/m/utils/Plot/plot2patch.m	(revision 7671)
+++ /issm/trunk/src/m/utils/Plot/plot2patch.m	(revision 7671)
@@ -0,0 +1,16 @@
+function [px py]=plot2patch(x,y,miny)
+%PLOT2PATCH: build patch out of x,y plot.
+%
+% Usage: [px,py]=plot2patch(x,y,miny)
+%
+%        where px and py are a list of point defining a closed polygon.
+%              x,y are the values of the plot
+%              miny is the y-value used to close the plot into a closed polygon.
+% 
+%      See also patch, plot
+
+px=x;
+py=y;
+
+px=[px; flipud(x)];
+py=[py; ; miny*ones(length(x),1)];
