Changeset 14866


Ignore:
Timestamp:
05/03/13 07:53:03 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed WARNING: option figure was not used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/plotoptions.m

    r14480 r14866  
    5252                         numoptions = (nargin-1)/2;
    5353                         rawlist=cell(numoptions,2);
     54                         counter=1;
    5455                         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;
    5862                                 else
    5963                                         %option is not a string, ignore it
    6064                                         disp(['WARNING: option number ' num2str(i) ' is not a string, it will be ignored']);
    61                                          rawlist(i,:)=[];
     65                                         rawlist(counter,:)=[];
    6266                                         continue
    6367                                 end
    6468                         end
    65 
    66                          %get figure number
    67                          opt.figurenumber=getfieldvalue(rawoptions,'figure',1);
    68                          removefield(rawoptions,'figure',0);
    6969
    7070                         %get number of data to be plotted
     
    163163                                 opt.list{i}=deleteduplicates(opt.list{i},1);
    164164                         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
    165170                 end
    166171                 %}}}
Note: See TracChangeset for help on using the changeset viewer.