Changeset 750 for trunk


Ignore:
Timestamp:
Apr 24, 2014, 8:43:54 AM (10 years ago)
Author:
sommeria
Message:

bug corrections

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r748 r750  
    603603
    604604%% set default coord selection
    605 if numel(find(test_coord))>3
    606     SwitchVarIndexTime=get(handles.SwitchVarIndexTime,'String');
    607     if numel(SwitchVarIndexTime)<3
    608         SwitchVarIndexTime=[SwitchVarIndexTime;'matrix_index'];
    609         set(handles.SwitchVarIndexTime,'String',SwitchVarIndexTime)
    610     end
    611     set(handles.SwitchVarIndexTime,'Value',3)% the last dim must be considered as time
    612     SwitchVarIndexTime_Callback([], [], handles)
    613 end
     605% if numel(find(test_coord))>3
     606%     SwitchVarIndexTime=get(handles.SwitchVarIndexTime,'String');
     607%     if numel(SwitchVarIndexTime)<3
     608%         SwitchVarIndexTime=[SwitchVarIndexTime;'matrix_index'];
     609%         set(handles.SwitchVarIndexTime,'String',SwitchVarIndexTime)
     610%     end
     611%     set(handles.SwitchVarIndexTime,'Value',3)% the last dim must be considered as time
     612%     SwitchVarIndexTime_Callback([], [], handles)
     613% end
    614614
    615615coord_val=[0 0];
  • trunk/src/uvmat.m

    r748 r750  
    26782678            ObjectData.A=flag_mask.*double(ObjectData.A);
    26792679            ObjectData.A=feval(AClass,ObjectData.A);
    2680         end
     2680        end       
     2681        set(handles.uvmat,'UserData',UvData)
    26812682        if ~isempty(ObjectData)
    26822683            %PlotType='none'; %default
     
    27032704    end
    27042705   
    2705     set(handles.uvmat,'UserData',UvData)
    2706    
    27072706    %% update the mask
    27082707    if isequal(get(handles.CheckMask,'Value'),1)%if the mask option is on
     
    29102909function CheckFixAspectRatio_Callback(hObject, eventdata, handles)
    29112910%------------------------------------------------------------------------
    2912 
    2913 % if get(handles.CheckFixAspectRatio,'Value')
    2914     update_plot(handles);
    2915 % else
    2916 %     update_plot(handles);
    2917 % end
     2911 update_plot(handles);
    29182912
    29192913%------------------------------------------------------------------------
     
    56775671
    56785672
    5679 % --- Executes on selection change in SwitchCoordIndex.
    5680 function SwitchCoordIndex_Callback(hObject, eventdata, handles)
    5681 % hObject    handle to SwitchCoordIndex (see GCBO)
    5682 % eventdata  reserved - to be defined in a future version of MATLAB
    5683 % handles    structure with handles and user data (see GUIDATA)
    5684 
    5685 % Hints: contents = cellstr(get(hObject,'String')) returns SwitchCoordIndex contents as cell array
    5686 %        contents{get(hObject,'Value')} returns selected item from SwitchCoordIndex
Note: See TracChangeset for help on using the changeset viewer.