Changeset 654 for trunk/src/get_field.m


Ignore:
Timestamp:
Jun 30, 2013, 11:16:45 PM (11 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r648 r654  
    140140set(handles.ordinate,'Value',1)% fill the menu of y vector components
    141141set(handles.ordinate,'String',Field.ListVarName)% fill the menu of y vector components
     142if isfield(Field,'Conventions')&& strcmp(Field.Conventions,'uvmat/civdata')
     143        set(handles.FieldOption,'String',{'1D plot';'scalar';'vectors';'civdata...'})
     144else
     145     set(handles.FieldOption,'String',{'1D plot';'scalar';'vectors'})
     146end
    142147if Field.MaxDim>=2 % case of 2D (or 3D) fields
    143148    if isfield(CellInfo{imax},'VarIndex_vector_x') &&  isfield(CellInfo{imax},'VarIndex_vector_y')
     
    149154        set(handles.FieldOption,'Value',2)
    150155    end
     156
    151157else % case of 1D fields
    152158    set(handles.FieldOption,'Value',1)
     
    338344switch FieldOption
    339345    case '1D plot'
     346        set(handles.Coordinates,'Visible','on')
    340347        set(handles.PanelOrdinate,'Visible','on')
    341348        pos=get(handles.PanelOrdinate,'Position');
     
    352359        ordinate_Callback(hObject, eventdata, handles)
    353360    case 'scalar'
     361        set(handles.Coordinates,'Visible','on')
    354362        set(handles.PanelOrdinate,'Visible','off')
    355363        set(handles.PanelScalar,'Visible','on')
     
    364372        scalar_Callback(hObject, eventdata, handles)
    365373    case 'vectors'
     374        set(handles.Coordinates,'Visible','on')
    366375        set(handles.PanelOrdinate,'Visible','off')
    367376        set(handles.PanelScalar,'Visible','off')
     
    375384        set(handles.Y_title,'Visible','on')     
    376385        vector_Callback(handles)
     386    case 'civdata...'
     387        set(handles.PanelOrdinate,'Visible','off')
     388        set(handles.PanelScalar,'Visible','off')
     389        set(handles.PanelVectors,'Visible','off')
     390        set(handles.Coordinates,'Visible','off')
    377391end
    378392
Note: See TracChangeset for help on using the changeset viewer.