Changeset 654 for trunk/src/get_field.m
- Timestamp:
- Jun 30, 2013, 11:16:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r648 r654 140 140 set(handles.ordinate,'Value',1)% fill the menu of y vector components 141 141 set(handles.ordinate,'String',Field.ListVarName)% fill the menu of y vector components 142 if isfield(Field,'Conventions')&& strcmp(Field.Conventions,'uvmat/civdata') 143 set(handles.FieldOption,'String',{'1D plot';'scalar';'vectors';'civdata...'}) 144 else 145 set(handles.FieldOption,'String',{'1D plot';'scalar';'vectors'}) 146 end 142 147 if Field.MaxDim>=2 % case of 2D (or 3D) fields 143 148 if isfield(CellInfo{imax},'VarIndex_vector_x') && isfield(CellInfo{imax},'VarIndex_vector_y') … … 149 154 set(handles.FieldOption,'Value',2) 150 155 end 156 151 157 else % case of 1D fields 152 158 set(handles.FieldOption,'Value',1) … … 338 344 switch FieldOption 339 345 case '1D plot' 346 set(handles.Coordinates,'Visible','on') 340 347 set(handles.PanelOrdinate,'Visible','on') 341 348 pos=get(handles.PanelOrdinate,'Position'); … … 352 359 ordinate_Callback(hObject, eventdata, handles) 353 360 case 'scalar' 361 set(handles.Coordinates,'Visible','on') 354 362 set(handles.PanelOrdinate,'Visible','off') 355 363 set(handles.PanelScalar,'Visible','on') … … 364 372 scalar_Callback(hObject, eventdata, handles) 365 373 case 'vectors' 374 set(handles.Coordinates,'Visible','on') 366 375 set(handles.PanelOrdinate,'Visible','off') 367 376 set(handles.PanelScalar,'Visible','off') … … 375 384 set(handles.Y_title,'Visible','on') 376 385 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') 377 391 end 378 392
Note: See TracChangeset
for help on using the changeset viewer.