Changeset 511 for trunk/src/view_field.m


Ignore:
Timestamp:
Aug 2, 2012, 3:12:48 PM (12 years ago)
Author:
sommeria
Message:

cleaning of uvmat and related fcts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r432 r511  
    7676set(handles.view_field,'UserData',ViewFieldData);%store the initial fig size in UserData
    7777AxeData.LimEditBox=1; %initialise AxeData, the parent figure sets plot parameters
    78 set(handles.axes3,'UserData',AxeData)
     78set(handles.PlotAxes,'UserData',AxeData)
    7979if exist('Field','var')
    80     [PlotType,PlotParamOut]= plot_field(Field,handles.axes3);%,PlotParam,KeepLim,PosColorbar)
     80    [PlotType,PlotParamOut]= plot_field(Field,handles.PlotAxes);%,PlotParam,KeepLim,PosColorbar)
    8181    set(handles.Coordinates,'Visible','on')
    8282    if isfield(PlotParamOut,'Vectors')
     
    149149pos(3)=max(1,pos_1(1)-pos(1)-bord(3));
    150150pos(4)=max(1,size_fig(4)-bord(4));
    151 set(handles.axes3,'Position',pos)
     151set(handles.PlotAxes,'Position',pos)
    152152
    153153%------------------------------------------------------------------------
     
    157157%------------------------------------------------------------------------
    158158varargout{1} = handles.output;% the only output argument is the handle to the GUI figure
    159 varargout{2} = strcmp(get(handles.axes3,'Visible'),'on');% check active plot axis
     159varargout{2} = strcmp(get(handles.PlotAxes,'Visible'),'on');% check active plot axis
    160160
    161161%------------------------------------------------------------------------
     
    280280%             uistack(hmask,'top')
    281281        else
    282             axes(handles.axes3)
     282            axes(handles.PlotAxes)
    283283            hold on   
    284284            MaskData.maskhandle=image(Mask.AX,Mask.AY,imflag,'Tag','mask','HitTest','off','AlphaData',0.6*flagmask);
     
    296296UvData=get(huvmat,'UserData');
    297297hfig=figure;
    298 newaxes=copyobj(handles.axes3,hfig);
    299 map=colormap(handles.axes3);
     298newaxes=copyobj(handles.PlotAxes,hfig);
     299map=colormap(handles.PlotAxes);
    300300colormap(map);%transmit the current colormap to the zoom fig
    301301colorbar
     
    774774AxeData=Data.axes3;% retrieve the current plotted data
    775775PlotParam=read_GUI(handles.view_field);
    776 [PP,PlotParamOut]= plot_field(AxeData,handles.axes3,PlotParam);
     776[PP,PlotParamOut]= plot_field(AxeData,handles.PlotAxes,PlotParam);
    777777write_plot_param(handles,PlotParamOut); %update the auto plot parameters
    778778
     
    798798UvData=get(huvmat,'UserData');
    799799hfig=figure;
    800 newaxes=copyobj(handles.axes3,hfig);
    801 map=colormap(handles.axes3);
     800newaxes=copyobj(handles.PlotAxes,hfig);
     801map=colormap(handles.PlotAxes);
    802802colormap(map);%transmit the current colormap to the zoom fig
    803803colorbar
Note: See TracChangeset for help on using the changeset viewer.