Index: /issm/trunk-jpl/src/m/plot/plot_BC.m
===================================================================
--- /issm/trunk-jpl/src/m/plot/plot_BC.m	(revision 19202)
+++ /issm/trunk-jpl/src/m/plot/plot_BC.m	(revision 19203)
@@ -2,5 +2,5 @@
 
 %plot neuman
-plot_icefront(md,options,width,i,data)
+h0 = plot_icefront(md,options,width,i,data);
 
 hold on
@@ -28,16 +28,10 @@
 end
 
-%update legend
-[legend_h,object_h,plot_h,text_strings]=legend();
-legend('off');
-if strcmpi(dirichleton,'on'),
-	text_strings{end+1}='vx Dirichlet';
-	text_strings{end+1}='vy Dirichlet';
-	if h3, text_strings{end+1}='vz Dirichlet'; end
-	plot_h(end+1)=h1;
-	plot_h(end+1)=h2;
-	if h3, plot_h(end+1)=h3; end
-end
-legend(plot_h,text_strings,'location','NorthEast')
+strings = {'Neumann'};
+if ~isempty(h1), strings{end+1} = 'vx Dirichlet'; end
+if ~isempty(h2), strings{end+1} = 'vy Dirichlet'; end
+if ~isempty(h3), strings{end+1} = 'vz Dirichlet'; end
+
+legend([h0,h1,h2,h3],strings,'location','NorthEast');
 
 hold off
Index: /issm/trunk-jpl/src/m/plot/plot_icefront.m
===================================================================
--- /issm/trunk-jpl/src/m/plot/plot_icefront.m	(revision 19202)
+++ /issm/trunk-jpl/src/m/plot/plot_icefront.m	(revision 19203)
@@ -1,3 +1,3 @@
-function plot_icefront(md,options,width,i,data)
+function h2 = plot_icefront(md,options,width,i,data)
 %PLOT_ICEFRONT - plot segment on neumann BC
 %
