Changeset 511 for trunk/src/view_field.m
- Timestamp:
- Aug 2, 2012, 3:12:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/view_field.m
r432 r511 76 76 set(handles.view_field,'UserData',ViewFieldData);%store the initial fig size in UserData 77 77 AxeData.LimEditBox=1; %initialise AxeData, the parent figure sets plot parameters 78 set(handles. axes3,'UserData',AxeData)78 set(handles.PlotAxes,'UserData',AxeData) 79 79 if 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) 81 81 set(handles.Coordinates,'Visible','on') 82 82 if isfield(PlotParamOut,'Vectors') … … 149 149 pos(3)=max(1,pos_1(1)-pos(1)-bord(3)); 150 150 pos(4)=max(1,size_fig(4)-bord(4)); 151 set(handles. axes3,'Position',pos)151 set(handles.PlotAxes,'Position',pos) 152 152 153 153 %------------------------------------------------------------------------ … … 157 157 %------------------------------------------------------------------------ 158 158 varargout{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 axis159 varargout{2} = strcmp(get(handles.PlotAxes,'Visible'),'on');% check active plot axis 160 160 161 161 %------------------------------------------------------------------------ … … 280 280 % uistack(hmask,'top') 281 281 else 282 axes(handles. axes3)282 axes(handles.PlotAxes) 283 283 hold on 284 284 MaskData.maskhandle=image(Mask.AX,Mask.AY,imflag,'Tag','mask','HitTest','off','AlphaData',0.6*flagmask); … … 296 296 UvData=get(huvmat,'UserData'); 297 297 hfig=figure; 298 newaxes=copyobj(handles. axes3,hfig);299 map=colormap(handles. axes3);298 newaxes=copyobj(handles.PlotAxes,hfig); 299 map=colormap(handles.PlotAxes); 300 300 colormap(map);%transmit the current colormap to the zoom fig 301 301 colorbar … … 774 774 AxeData=Data.axes3;% retrieve the current plotted data 775 775 PlotParam=read_GUI(handles.view_field); 776 [PP,PlotParamOut]= plot_field(AxeData,handles. axes3,PlotParam);776 [PP,PlotParamOut]= plot_field(AxeData,handles.PlotAxes,PlotParam); 777 777 write_plot_param(handles,PlotParamOut); %update the auto plot parameters 778 778 … … 798 798 UvData=get(huvmat,'UserData'); 799 799 hfig=figure; 800 newaxes=copyobj(handles. axes3,hfig);801 map=colormap(handles. axes3);800 newaxes=copyobj(handles.PlotAxes,hfig); 801 map=colormap(handles.PlotAxes); 802 802 colormap(map);%transmit the current colormap to the zoom fig 803 803 colorbar
Note: See TracChangeset
for help on using the changeset viewer.