Changeset 1023 for trunk/src/get_field.m


Ignore:
Timestamp:
Dec 12, 2017, 7:18:01 PM (6 years ago)
Author:
sommeria
Message:

bug repaired for ordinary plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r1009 r1023  
    196196    set(handles.scalar,'Max',1)
    197197end
     198
     199%% set default field options
     200checknbdim=cellfun('size',Field.Display.VarDimName,2);
     201if max(checknbdim)<=1
     202    Field.MaxDim=1;% only 1D fields, considered as a time series by default
     203end
    198204if Field.MaxDim>=2 && ~checkseries% case of 2D (or 3D) fields
    199205    check_vec_input=0;
     
    215221        set(handles.FieldOption,'Value',3)% set vector selection option
    216222    else
     223       
    217224        set(handles.FieldOption,'Value',2)% set scalar selection option
    218225    end
Note: See TracChangeset for help on using the changeset viewer.