Changeset 2821


Ignore:
Timestamp:
01/13/10 15:55:45 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added 'alloptions','on' option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/@plotoptions/buildlist.m

    r2708 r2821  
    2020plotoptions.numberofplots=numberofplots;
    2121
     22%figure out wether alloptions flog is on
     23if strcmpi(getfieldvalue(rawoptions,'alloptions','off'),'on'),
     24        allflag=1;
     25else
     26        allflag=0;
     27end
     28
    2229%initialize plotoptions.list
    2330plotoptions.list=cell(numberofplots,1);
     
    2936for i=1:size(rawoptions.list,1),
    3037
     38        %If alloptions flag has is on, apply to all plots
     39        if (allflag & ~strcmpi(rawoptions.list{i,1},'data') & ~ismember('#',rawoptions.list{i,1})),
     40                for j=1:numberofplots,
     41                        plotoptions.list{j}=addfield(plotoptions.list{j},rawoptions.list{i,1},rawoptions.list{i,2});
     42                end
     43
    3144        %option contains '#'
    32         if ismember('#',rawoptions.list{i,1}),
     45        elseif ismember('#',rawoptions.list{i,1}),
    3346
    3447                %get suplot(s) associated
Note: See TracChangeset for help on using the changeset viewer.