Changeset 156 for trunk/src/view_field.m


Ignore:
Timestamp:
Dec 19, 2010, 10:11:04 PM (13 years ago)
Author:
sommeria
Message:

many bug repairs and corrections for mouse action
create_grid: option for black marjkers for grid detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r150 r156  
    7575    set(hhuvmat.list_object_2,'Visible','on')
    7676    % handles_mouse.create=hhuvmat.create;
    77     handles_mouse.edit=hhuvmat.edit;
     77    handles_mouse.edit=hhuvmat.edit_object;
    7878    pos_uvmat=get(huvmat,'Position');
    7979    pos_view_field(1)=pos_uvmat(1)+pos_uvmat(3)/2;
     
    8989set(hObject,'WindowButtonUpFcn',{'mouse_up',handles_mouse})
    9090set(hObject,'CloseRequestFcn',{@closefcn})%
     91if ~exist('Field','var')
     92    return
     93end
    9194
    9295[PlotType,PlotParamOut]= plot_field(Field,handles.axes3);%,PlotParam,KeepLim,PosColorbar)
    9396ViewFieldData.axes3=Field;
    9497set(handles.view_field,'UserData',ViewFieldData);%store the current field
    95 get(handles.view_field)
    9698if isfield(PlotParamOut,'Vectors')
    9799    set(handles.VECT_title,'Visible','on')
Note: See TracChangeset for help on using the changeset viewer.