Changeset 15396 for issm/trunk/src/m/classes/plotoptions.m
- Timestamp:
- 07/02/13 09:24:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 par 2 ad 3 proj-* 1 4 projects 2 5 autom4te.cache
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 14311,14313,14316-14506,14508-15387,15390-15392
- Property svn:ignore
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/classes/plotoptions.m
r14310 r15396 45 45 %check length of input 46 46 if mod((nargin-1),2), 47 error(' buildlist error message: an even number of plotoptions is required')47 error('Invalid parameter/value pair arguments') 48 48 end 49 49 … … 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 69 69 70 %get number of data to be plotted … … 162 163 opt.list{i}=deleteduplicates(opt.list{i},1); 163 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 164 170 end 165 171 %}}}
Note:
See TracChangeset
for help on using the changeset viewer.