Index: /issm/trunk/src/m/classes/public/plot/checkplotoptions.m
===================================================================
--- /issm/trunk/src/m/classes/public/plot/checkplotoptions.m	(revision 2827)
+++ /issm/trunk/src/m/classes/public/plot/checkplotoptions.m	(revision 2828)
@@ -73,6 +73,6 @@
 	
 %text
-%1: textvalue
 if exist(options,'text'),
+	%1: textvalue
 	textvalues=getfieldvalue(options,'text');
 	%ischar if only one expstyle -> create a cell
@@ -85,61 +85,62 @@
 		error('plot error message: ''text'' option should be either a string or a cell');
 	end
-end
-%2: textweight
-if exist(options,'textweight'),
-	textweightvalues=getfieldvalue(options,'textweight');
-	%ischar if only one textweight -> create a cell
-	if ischar(textweightvalues),
-		textweightvalues={textweightvalues};
-	elseif ~iscell(textweightvalues);
-		error('plot error message: ''textweight'' option should be either a string or a cell');
-	end
-else
-	textweightvalues={'n'};
-end
-textweightvalues=repmat(textweightvalues,1,numtext); textweightvalues(numtext+1:end)=[];
-%3: textsize
-if exist(options,'textsize'),
-	textsizevalues=getfieldvalue(options,'textsize');
-	%ischar if only one textsize -> create a cell
-	if isnumeric(textsizevalues),
-		textsizevalues={textsizevalues};
-	elseif ~iscell(textsizevalues);
-		error('plot error message: ''textsize'' option should be either a number or a cell');
-	end
-else
-	textsizevalues={14};
-end
-textsizevalues=repmat(textsizevalues,1,numtext); textsizevalues(numtext+1:end)=[];
-%4: textcolor
-if exist(options,'textcolor'),
-	textcolorvalues=getfieldvalue(options,'textcolor');
-	%ischar if only one textcolor -> create a cell
-	if ischar(textcolorvalues),
-		textcolorvalues={textcolorvalues};
-	elseif ~iscell(textcolorvalues);
-		error('plot error message: ''textcolor'' option should be either a string or a cell');
-	end
-else
-	textcolorvalues={'k'};
-end
-textcolorvalues=repmat(textcolorvalues,1,numtext); textcolorvalues(numtext+1:end)=[];
-%4: textposition
-if exist(options,'textposition'),
-	textpositionvalues=getfieldvalue(options,'textposition');
-	%ischar if only one textposition -> create a cell
-	if isnumeric(textpositionvalues),
-		textpositionvalues={textpositionvalues};
-	elseif ~iscell(textpositionvalues);
-		error('plot error message: ''textposition'' option should be either a string or a cell');
-	end
-else
-	error('plot error message: ''textposition'' option is missing');
-end
-options=changefieldvalue(options,'text',textvalues);
-options=changefieldvalue(options,'textsize',textsizevalues);
-options=changefieldvalue(options,'textweight',textweightvalues);
-options=changefieldvalue(options,'textcolor',textcolorvalues);
-options=changefieldvalue(options,'textposition',textpositionvalues);
+
+	%2: textweight
+	if exist(options,'textweight'),
+		textweightvalues=getfieldvalue(options,'textweight');
+		%ischar if only one textweight -> create a cell
+		if ischar(textweightvalues),
+			textweightvalues={textweightvalues};
+		elseif ~iscell(textweightvalues);
+			error('plot error message: ''textweight'' option should be either a string or a cell');
+		end
+	else
+		textweightvalues={'n'};
+	end
+	textweightvalues=repmat(textweightvalues,1,numtext); textweightvalues(numtext+1:end)=[];
+	%3: textsize
+	if exist(options,'textsize'),
+		textsizevalues=getfieldvalue(options,'textsize');
+		%ischar if only one textsize -> create a cell
+		if isnumeric(textsizevalues),
+			textsizevalues={textsizevalues};
+		elseif ~iscell(textsizevalues);
+			error('plot error message: ''textsize'' option should be either a number or a cell');
+		end
+	else
+		textsizevalues={14};
+	end
+	textsizevalues=repmat(textsizevalues,1,numtext); textsizevalues(numtext+1:end)=[];
+	%4: textcolor
+	if exist(options,'textcolor'),
+		textcolorvalues=getfieldvalue(options,'textcolor');
+		%ischar if only one textcolor -> create a cell
+		if ischar(textcolorvalues),
+			textcolorvalues={textcolorvalues};
+		elseif ~iscell(textcolorvalues);
+			error('plot error message: ''textcolor'' option should be either a string or a cell');
+		end
+	else
+		textcolorvalues={'k'};
+	end
+	textcolorvalues=repmat(textcolorvalues,1,numtext); textcolorvalues(numtext+1:end)=[];
+	%4: textposition
+	if exist(options,'textposition'),
+		textpositionvalues=getfieldvalue(options,'textposition');
+		%ischar if only one textposition -> create a cell
+		if isnumeric(textpositionvalues),
+			textpositionvalues={textpositionvalues};
+		elseif ~iscell(textpositionvalues);
+			error('plot error message: ''textposition'' option should be either a string or a cell');
+		end
+	else
+		error('plot error message: ''textposition'' option is missing');
+	end
+	options=changefieldvalue(options,'text',textvalues);
+	options=changefieldvalue(options,'textsize',textsizevalues);
+	options=changefieldvalue(options,'textweight',textweightvalues);
+	options=changefieldvalue(options,'textcolor',textcolorvalues);
+	options=changefieldvalue(options,'textposition',textpositionvalues);
+end
 
 %expdisp
Index: /issm/trunk/src/m/classes/public/plot/plot_manager.m
===================================================================
--- /issm/trunk/src/m/classes/public/plot/plot_manager.m	(revision 2827)
+++ /issm/trunk/src/m/classes/public/plot/plot_manager.m	(revision 2828)
@@ -3,5 +3,5 @@
 %
 %   Usage:
-%      plot_manager(md,options,width,i);
+%      plot_manager(md,options,subplotwidth,i);
 %
 %   See also: PLOTMODEL, PLOT_UNIT
@@ -19,78 +19,78 @@
 
 		case 'boundaries',
-			plot_boundaries(md,options,width,i);
+			plot_boundaries(md,options,subplotwidth,i);
 			return;
 		case 'elementnumbering',
-			plot_elementnumbering(md,options,width,i);
+			plot_elementnumbering(md,options,subplotwidth,i);
 			return;
 		case 'highlightelements',
-			plot_highlightelements(md,options,width,i);
+			plot_highlightelements(md,options,subplotwidth,i);
 			return;
 		case 'segmentnumbering',
-			plot_segmentnumbering(md,options,width,i);
+			plot_segmentnumbering(md,options,subplotwidth,i);
 			return;
 		case 'histnorm',
-			plot_qmuhistnorm(md,options,width,i);
+			plot_qmuhistnorm(md,options,subplotwidth,i);
 			return;
 		case 'elements_type',
-			plot_elementstype(md,options,width,i);
+			plot_elementstype(md,options,subplotwidth,i);
 			return;
 		case 'gridnumbering',
-			plot_gridnumbering(md,options,width,i);
+			plot_gridnumbering(md,options,subplotwidth,i);
 			return;
 		case 'highlightgrids',
-			plot_highlightgrids(md,options,width,i);
+			plot_highlightgrids(md,options,subplotwidth,i);
 			return;
 		case {'basal_drag','basal_dragx','basal_dragy'},
-			plot_basaldrag(md,options,width,i,data);
+			plot_basaldrag(md,options,subplotwidth,i,data);
 			return;
 		case 'driving_stress',
-			plot_drivingstress(md,options,width,i);
+			plot_drivingstress(md,options,subplotwidth,i);
 			return;
 		case 'mesh',
-			plot_mesh(md,options,width,i);
+			plot_mesh(md,options,subplotwidth,i);
 			return;
 		case 'penalties',
-			plot_penalties(md,options,width,i);
+			plot_penalties(md,options,subplotwidth,i);
 			return;
 		case 'riftvel',
-			plot_riftvel(md,options,width,i);
+			plot_riftvel(md,options,subplotwidth,i);
 			return;
 		case 'rifts',
-			plot_rifts(md,options,width,i);
+			plot_rifts(md,options,subplotwidth,i);
 			return;
 		case 'riftrelvel',
-			plot_riftrelvel(md,options,width,i);
+			plot_riftrelvel(md,options,subplotwidth,i);
 			return;
 		case 'riftpenetration',
-			plot_riftpenetration(md,options,width,i);
+			plot_riftpenetration(md,options,subplotwidth,i);
 			return;
 		case 'riftfraction',
-			plot_riftfraction(md,options,width,i);
+			plot_riftfraction(md,options,subplotwidth,i);
 			return;
 		case 'sarpwr',
-			plot_sarpwr(md,options,width,i)
+			plot_sarpwr(md,options,subplotwidth,i)
 			return
 		case 'pressureload'
-			plot_pressureload(md,options,width,i,data)
+			plot_pressureload(md,options,subplotwidth,i,data)
 			return
 		case 'segments'
-			plot_segments(md,options,width,i,data)
+			plot_segments(md,options,subplotwidth,i,data)
 			return
 		case {'strainrate_tensor','strainrate','strainrate_principal','strainrate_principalaxis1','strainrate_principalaxis2','strainrate_principalaxis3',...
 				'stress_tensor','stress','stress_principal','stress_principalaxis1','stress_principalaxis2','stress_principalaxis3',...
 				'deviatoricstress_tensor','deviatoricstress','deviatoricstress_principal','deviatoricstress_principalaxis1','deviatoricstress_principalaxis2','deviatoricstress_principalaxis3'},
-			plot_tensor(md,options,width,i,data);
+			plot_tensor(md,options,subplotwidth,i,data);
 			return;
 		case 'thermaltransient_results',
-			plot_thermaltransient_results(md,options,width,i);
+			plot_thermaltransient_results(md,options,subplotwidth,i);
 			return;
 		case 'transient_movie',
-			plot_transient_movie(md,options,width,i);
+			plot_transient_movie(md,options,subplotwidth,i);
 			return;
 		case 'transient_results',
-			plot_transient_results(md,options,width,i);
+			plot_transient_results(md,options,subplotwidth,i);
 		case {'transient_thickness','transient_bed','transient_surface','transient_temperature','transient_melting','transient_vel','transient_vx','transient_vy','transient_vz','transient_pressure'}
-			plot_transient_field(md,options,width,i,data);
+			plot_transient_field(md,options,subplotwidth,i,data);
 			return;
 
@@ -107,5 +107,5 @@
 %Figure out if this is a semi-transparent plot.
 if exist(options,'overlay'),
-	plot_overlay(md,data,options,width,i);
+	plot_overlay(md,data,options,subplotwidth,i);
 	return;
 end
@@ -113,5 +113,5 @@
 %Figure out if this is a Section plot
 if exist(options,'sectionvalue')
-	plot_section(md,data,options,width,i);
+	plot_section(md,data,options,subplotwidth,i);
 	return;
 end
