Changeset 764 for trunk/src/get_field.m


Ignore:
Timestamp:
May 2, 2014, 2:03:44 AM (11 years ago)
Author:
sommeria
Message:

improvement of movie-pair for uvmat and introduction of a separate window SetPair? in series.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r756 r764  
    166166set(handles.ordinate,'String',Field.Display.ListVarName)% fill the menu of y coordinate for 1D plots
    167167checkseries=0;
    168 if isfield(ParamIn,'SeriesInput') && ParamIn.SeriesInput
     168if isfield(ParamIn,'SeriesInput') && ParamIn.SeriesInput% case of call by series
    169169    set(handles.FieldOption,'value',1)
    170     set(handles.FieldOption,'String',{'scalar'})% case of call by series, only scalar
     170    if isfield(Field,'Conventions')&& strcmp(Field.Conventions,'uvmat/civdata')
     171    set(handles.FieldOption,'String',{'pick variables';'civdata...'})
     172    else
     173       set(handles.FieldOption,'String',{'pick variables'})
     174    end
    171175    checkseries=1;
    172176    set(handles.scalar,'Max',2)
     
    403407        ordinate_Callback(hObject, eventdata, handles)
    404408       
    405     case 'scalar'
     409    case {'scalar','pick variables'}
    406410        set(handles.Coordinates,'Visible','on')
    407411        set(handles.PanelOrdinate,'Visible','off')
     
    954958    case '1D plot'
    955959       
    956     case 'scalar'
     960    case {'scalar','pick variables'}
    957961       scalar_Callback(hObject, eventdata, handles)
    958962    case 'vectors'
    959963end
    960964
    961 % --- Executes on button press in CheckDimensionY.
    962 function CheckDimensionY_Callback(hObject, eventdata, handles)
    963 FieldList=get(handles.FieldOption,'String');
    964 FieldOption=FieldList{get(handles.FieldOption,'Value')};
    965 switch FieldOption
    966     case '1D plot'
    967        
    968     case 'scalar'
    969        scalar_Callback(hObject, eventdata, handles)
    970     case 'vectors'
    971 end
    972 
    973 
    974 % --- Executes on button press in CheckDimensionZ.
    975 function CheckDimensionZ_Callback(hObject, eventdata, handles)
    976 FieldList=get(handles.FieldOption,'String');
    977 FieldOption=FieldList{get(handles.FieldOption,'Value')};
    978 switch FieldOption
    979     case '1D plot'
    980        
    981     case 'scalar'
    982        scalar_Callback(hObject, eventdata, handles)
    983     case 'vectors'
    984 end
     965% % --- Executes on button press in CheckDimensionY.
     966% function CheckDimensionY_Callback(hObject, eventdata, handles)
     967% FieldList=get(handles.FieldOption,'String');
     968% FieldOption=FieldList{get(handles.FieldOption,'Value')};
     969% switch FieldOption
     970%     case '1D plot'
     971%        
     972%     case {'scalar','pick variables'}
     973%        scalar_Callback(hObject, eventdata, handles)
     974%     case 'vectors'
     975% end
     976%
     977%
     978% % --- Executes on button press in CheckDimensionZ.
     979% function CheckDimensionZ_Callback(hObject, eventdata, handles)
     980% FieldList=get(handles.FieldOption,'String');
     981% FieldOption=FieldList{get(handles.FieldOption,'Value')};
     982% switch FieldOption
     983%     case '1D plot'
     984%        
     985%     case 'scalar'
     986%        scalar_Callback(hObject, eventdata, handles)
     987%     case 'vectors'
     988% end
    985989
    986990% --- Executes on selection change in TimeName.
Note: See TracChangeset for help on using the changeset viewer.