Changeset 876 for trunk/src/get_field.m


Ignore:
Timestamp:
Feb 22, 2015, 11:07:07 PM (10 years ago)
Author:
sommeria
Message:

deformation modified in civ_series and bug corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r874 r876  
    268268drawnow
    269269uiwait(handles.get_field);
    270 
    271 %------------------------------------------------------------------------
    272 % --- Executes when user attempts to close get_field.
    273 %------------------------------------------------------------------------
    274 %------------------------------------------------------------------------
    275 
    276 
    277 % Use UIRESUME instead of delete because the OutputFcn needs
    278 % to get the updated handles structure.
    279 
    280 % function get_field_CloseRequestFcn(hObject, eventdata)
    281 % handles.output=[];
    282 % guidata(hObject, handles);% Update handles structure
    283 % %delete(handles.get_field);
    284 % uiresume(handles.get_field);
    285 %drawnow
    286 % if isequal(get(handles.get_field, 'waitstatus'), 'waiting')
    287 %     % The GUI is still in UIWAIT, us UIRESUME
    288 %     uiresume(handles.get_field);
    289 % else
    290 %     % The GUI is no longer waiting, just close it
    291 %     delete(handles.get_field);
    292 % end
    293270
    294271% -----------------------------------------------------------------------
     
    775752    end
    776753    if numel(var_component)<2
    777         if numel(test_coord)<2
     754        if numel(find(test_coord))<2
    778755            ListCoord={''};
    779756        else
    780             if numel(test_coord)>=3
     757            if numel(find(test_coord))>=3
    781758                set(handles.Coord_x,'Value',3)
    782759                set(handles.Coord_y,'Value',2)
     
    10681045set(handles.vector_z,'Visible',status)
    10691046set(handles.W_title,'Visible',status)   
     1047if strcmp(status,'on')
    10701048   Field=get(handles.get_field,'UserData');
    10711049    if Field.MaxDim>=3% for 3D fields, propose to use the third variable as time
     
    10771055        end
    10781056    end
    1079 
     1057end
    10801058%------------------------------------------------------------------------
    10811059% --- Executes on button press in OK.
Note: See TracChangeset for help on using the changeset viewer.