Changeset 501 for trunk/src/plot_field.m


Ignore:
Timestamp:
Jul 25, 2012, 1:41:52 AM (9 years ago)
Author:
sommeria
Message:

various improvements: read input parameters for civ. Order of panels rationalised.
rationalisation in find_field_indices
simplification of default PARAM.xml, suppress unneeded information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r477 r501  
    132132    end
    133133end
    134 index_1D=find(NbDim==1);
     134index_1D=find(NbDim==1&~cellfun(@isempty,VarType));
    135135index_0D=find(NbDim==0);
    136136%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         end
    142     end
    143     index_1D=index_1D(index_1D>0);
    144 end
     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%         end
     142%     end
     143%     index_1D=index_1D(index_1D>0);
     144% end
    145145
    146146%% test axes and figure
     
    346346%loop on input  fields
    347347for icell=1:length(CellVarIndex)
     348    if isempty(VarType{icell})% coordiante variable
     349        continue
     350    end
    348351    VarIndex=CellVarIndex{icell};%  indices of the selected variables in the list data.ListVarName
    349352    if ~isempty(VarType{icell}.coord_x)
Note: See TracChangeset for help on using the changeset viewer.