Changeset 14866
- Timestamp:
- 05/03/13 07:53:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/plotoptions.m
r14480 r14866 52 52 numoptions = (nargin-1)/2; 53 53 rawlist=cell(numoptions,2); 54 counter=1; 54 55 for i=1:numoptions, 55 if ischar(varargin{2*i-1}), 56 rawlist{i,1}=varargin{2*i-1}; 57 rawlist{i,2}=varargin{2*i}; 56 optionname = varargin{2*i-1}; 57 optionval = varargin{2*i}; 58 if ischar(optionname), 59 rawlist{counter,1}=optionname; 60 rawlist{counter,2}=optionval; 61 counter=counter+1; 58 62 else 59 63 %option is not a string, ignore it 60 64 disp(['WARNING: option number ' num2str(i) ' is not a string, it will be ignored']); 61 rawlist( i,:)=[];65 rawlist(counter,:)=[]; 62 66 continue 63 67 end 64 68 end 65 66 %get figure number67 opt.figurenumber=getfieldvalue(rawoptions,'figure',1);68 removefield(rawoptions,'figure',0);69 69 70 70 %get number of data to be plotted … … 163 163 opt.list{i}=deleteduplicates(opt.list{i},1); 164 164 end 165 166 %Get figure number (should be in options for subplot 1) 167 opt.figurenumber=getfieldvalue(opt.list{1},'figure',1); 168 removefield(opt.list{1},'figure',0); 169 165 170 end 166 171 %}}}
Note:
See TracChangeset
for help on using the changeset viewer.