Changeset 501 for trunk/src/plot_field.m
- Timestamp:
- Jul 25, 2012, 1:41:52 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r477 r501 132 132 end 133 133 end 134 index_1D=find(NbDim==1 );134 index_1D=find(NbDim==1&~cellfun(@isempty,VarType)); 135 135 index_0D=find(NbDim==0); 136 136 %remove coordinates variables from 1D plot 137 if ~isempty(index_2D)138 for ivar=1:length(index_1D)139 if isequal(CellVarIndex{index_1D(ivar)},VarType{index_1D(ivar)}.coord)140 index_1D(ivar)=0;141 end142 end143 index_1D=index_1D(index_1D>0);144 end137 % if ~isempty(index_2D) 138 % for ivar=1:length(index_1D) 139 % if isequal(CellVarIndex{index_1D(ivar)},VarType{index_1D(ivar)}.coord) 140 % index_1D(ivar)=0; 141 % end 142 % end 143 % index_1D=index_1D(index_1D>0); 144 % end 145 145 146 146 %% test axes and figure … … 346 346 %loop on input fields 347 347 for icell=1:length(CellVarIndex) 348 if isempty(VarType{icell})% coordiante variable 349 continue 350 end 348 351 VarIndex=CellVarIndex{icell};% indices of the selected variables in the list data.ListVarName 349 352 if ~isempty(VarType{icell}.coord_x)
Note: See TracChangeset
for help on using the changeset viewer.