Index: /issm/branches/trunk-larour-NatGeoScience2016/src/m/plot/applyoptions.m
===================================================================
--- /issm/branches/trunk-larour-NatGeoScience2016/src/m/plot/applyoptions.m	(revision 22887)
+++ /issm/branches/trunk-larour-NatGeoScience2016/src/m/plot/applyoptions.m	(revision 22888)
@@ -294,4 +294,5 @@
 	textposition=getfieldvalue(options,'textposition');
 	textrotation=getfieldvalue(options,'textrotation');
+	text3d=getfieldvalue(options,'text3d',0);
 	for i=1:length(getfieldvalue(options,'text'));
 		textstringi=textstring{i};
@@ -301,5 +302,9 @@
 		textpositioni=textposition{i};
 		textrotationi=textrotation{i};
-		h=text(textpositioni(1),textpositioni(2),10,textstringi,'FontSize',textsizei,'FontWeight',textweighti,'Color',textcolori,'Rotation',textrotationi);
+		if ~text3d,
+			h=text(textpositioni(1),textpositioni(2),textstringi,'FontSize',textsizei,'FontWeight',textweighti,'Color',textcolori,'Rotation',textrotationi);
+		else
+			h=text(textpositioni(1),textpositioni(2),textpositioni(3),textstringi,'FontSize',textsizei,'FontWeight',textweighti,'Color',textcolori,'Rotation',textrotationi);
+		end
 		if strcmpi(getfieldvalue(options,'textclip','on'),'on'),
 			set(h,'Clipping','on'); %prevent text from appearing outside of the box
