Changeset 25836 for issm/trunk/src/m/plot/plotmodel.m
- Timestamp:
- 12/08/20 08:45:53 (4 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/plot/plotmodel.m
r23189 r25836 10 10 11 11 %get number of subplots 12 subplotwidth=ceil(sqrt( options.numberofplots));12 subplotwidth=ceil(sqrt(numberofplots)); 13 13 14 14 %if nlines and ncols specified, then bypass. … … 28 28 end 29 29 30 % Add option for subplot, only support one subplot per one plotmodel call 31 subindex = 0; 32 if (exist(options.list{1},'subplot')) 33 subops = getfieldvalue(options.list{1},'subplot',NaN); 34 nlines = subops(1); 35 ncols = subops(2); 36 subindex = subops(3); 37 % change the width 38 subplotwidth = ncols; 39 % Turn off new figure option for subplot 40 options.list{1}=addfield(options.list{1},'figurestatement','off'); 41 % Turn off clf option for subplot 42 options.list{1}=addfield(options.list{1},'clf','off'); 43 end 44 30 45 %go through subplots 31 46 if numberofplots, 32 47 33 48 %Create figure 34 if strcmpi(getfieldvalue(options.list{1},'figurestatement','on'),'on'),49 if (strcmpi(getfieldvalue(options.list{1},'figurestatement','on'),'on')) 35 50 f=figure(figurenumber); 36 51 else … … 89 104 end % }}} 90 105 91 %Use zbuffer renderer (s noother colors) and white background106 %Use zbuffer renderer (smoother colors) and white background 92 107 set(f,'Renderer','zbuffer','color',getfieldvalue(options.list{1},'figurebackgroundcolor','w')); 93 108 … … 95 110 try, 96 111 for i=1:numberofplots, 97 plot_manager(getfieldvalue(options.list{i},'model',md),options.list{i},subplotwidth,nlines,ncols,i); 98 %List all unused options 112 if subindex 113 plot_manager(getfieldvalue(options.list{i},'model',md),options.list{i},subplotwidth,nlines,ncols,subindex); 114 else 115 plot_manager(getfieldvalue(options.list{i},'model',md),options.list{i},subplotwidth,nlines,ncols,i); 116 end 117 %List all unused options 99 118 if getfieldvalue(options.list{i},'displayunused',1), 100 119 displayunused(options.list{i}) … … 106 125 end 107 126 else 108 error('plotmodel error message: no output data found. 127 error('plotmodel error message: no output data found.'); 109 128 end
Note:
See TracChangeset
for help on using the changeset viewer.