Changeset 764 for trunk/src/get_field.m
- Timestamp:
- May 2, 2014, 2:03:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r756 r764 166 166 set(handles.ordinate,'String',Field.Display.ListVarName)% fill the menu of y coordinate for 1D plots 167 167 checkseries=0; 168 if isfield(ParamIn,'SeriesInput') && ParamIn.SeriesInput 168 if isfield(ParamIn,'SeriesInput') && ParamIn.SeriesInput% case of call by series 169 169 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 171 175 checkseries=1; 172 176 set(handles.scalar,'Max',2) … … 403 407 ordinate_Callback(hObject, eventdata, handles) 404 408 405 case 'scalar'409 case {'scalar','pick variables'} 406 410 set(handles.Coordinates,'Visible','on') 407 411 set(handles.PanelOrdinate,'Visible','off') … … 954 958 case '1D plot' 955 959 956 case 'scalar'960 case {'scalar','pick variables'} 957 961 scalar_Callback(hObject, eventdata, handles) 958 962 case 'vectors' 959 963 end 960 964 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 FieldOption966 case '1D plot'967 968 case 'scalar' 969 scalar_Callback(hObject, eventdata, handles)970 case 'vectors'971 end972 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 FieldOption979 case '1D plot'980 981 case 'scalar'982 scalar_Callback(hObject, eventdata, handles)983 case 'vectors'984 end965 % % --- 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 985 989 986 990 % --- Executes on selection change in TimeName.
Note: See TracChangeset
for help on using the changeset viewer.