Changeset 428 for trunk/src/sub_field.m


Ignore:
Timestamp:
May 19, 2012, 12:38:14 PM (12 years ago)
Author:
sommeria
Message:

bugs fixed. Introduction of transparency and axis aspect ratio in uvmat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sub_field.m

    r405 r428  
    300300        end
    301301    end     
    302     if ~testX_1
    303           DimCell=[{XName_1_1} {YName_1_1}];
     302    if ~testX_1% if the second field has structured coordinates
     303          DimCell={XName_1_1,YName_1_1, {YName_1_1,XName_1_1}};
     304    else
     305        DimCell=[DimCell Field_1.VarDimName(ivar_C_1)];
    304306    end
    305307    SubData.ListVarName=[SubData.ListVarName {XName_1_1} {YName_1_1} {AName_1_1}];
    306     DimCell=[DimCell Field_1.VarDimName(ivar_C_1)]; %(TODO: check for dimension names)
    307     if testX_1
     308    % check that a  different dimension name is used for the two fields
     309     if testX_1% if the second field has unstructured coordinates
    308310        for icell=1:numel(DimCell)
    309311            if isequal(DimCell{icell}{1},SubData.VarDimName{1}{1})
     
    311313            end
    312314        end
    313     end
     315     end
    314316    SubData.VarDimName=[SubData.VarDimName DimCell];
    315317    if isfield(Field_1,'VarAttribute')
Note: See TracChangeset for help on using the changeset viewer.