Changeset 25038
- Timestamp:
- 06/16/20 09:31:08 (5 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_manager.m
r24478 r25038 202 202 end 203 203 204 % clear subplot option 205 if exist(options,'subplot') 206 cla; 207 end 208 204 209 %plot unit 205 210 plot_unit(x,y,z,elements,data2,is2d,isplanet,datatype,options); -
issm/trunk-jpl/src/m/plot/plotmodel.m
r22927 r25038 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 … … 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})
Note:
See TracChangeset
for help on using the changeset viewer.