Changeset 156 for trunk/src/plot_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/plot_field.m

    r153 r156  
    144144if testnewfig% create a new figure and axes if the plotting axes does not exist
    145145    hfig=figure;
    146 %     if isfield(Data,'IndexObj') && isfield(Data,'Style') && isfield(Data,'ProjMode')
    147 %         figname=[num2str(Data.IndexObj) '-' Data.Style];
    148 %         set(hfig,'Name',figname)
    149 %     end
    150 %     testhandle=0;
    151146    if isfield(PlotParam,'text_display_1') && ishandle(PlotParam.text_display_1)
    152147        set(hfig,'UserData',PlotParam)
    153 %         testhandle=1;
    154148    end
    155149    set(hfig,'Units','normalized')
    156150    set(hfig,'WindowButtonDownFcn','mouse_down')
    157     %set(hfig,'WindowButtonMotionFcn',{'mouse_motion',PlotParam})%set mouse action function
    158151    set(hfig,'WindowButtonMotionFcn','mouse_motion')%set mouse action function
    159152    set(hfig,'WindowButtonUpFcn','mouse_up')%set mouse action function
     
    204197        if testzoomaxes && isempty(errormsg)
    205198            [AxeData,zoomaxes,PlotParamOut,xx,errormsg]=plot_plane(Data,CellVarIndex(ind_select),VarType(ind_select),zoomaxes,PlotParam,1,PosColorbar);
    206             %AxeData.ZoomAxes=zoomaxes;
    207199            Data.ZoomAxes=zoomaxes;
    208200        end
Note: See TracChangeset for help on using the changeset viewer.