Changeset 187 for trunk/src/uvmat.m
- Timestamp:
- Feb 1, 2011, 1:07:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r183 r187 217 217 UvData.OpenParam.CalOrigin=[0.95 -0.03];%position for geometry_calib (TO IMPROVE) 218 218 UvData.OpenParam.CalSize=[0.28 1]; 219 UvData.axes3=[];%initiate the record of plotted field 220 UvData.axes2=[]; 221 UvData.axes1=[]; 219 222 220 223 %functions for the mouse and keyboard … … 2520 2523 UvData.Object{1}.plotaxes=handles.axes3;%default plotting axis 2521 2524 end 2525 UvData.NewSeries=0;% put to 0 the test for a new field series (set by RootPath_callback) 2526 set(handles.uvmat,'UserData',UvData) 2522 2527 2523 2528 %% reset the min and max of scalar if only the mask is displayed(TODO: check the need) … … 2612 2617 view_field(ObjectData) 2613 2618 else 2614 [PlotType,PlotParamOut]=plot_field(ObjectData,haxes(imap),PlotParam{imap}, keeplim(imap),PosColorbar{imap});2619 [PlotType,PlotParamOut]=plot_field(ObjectData,haxes(imap),PlotParam{imap},PosColorbar{imap}); 2615 2620 write_plot_param(plot_handles{imap},PlotParamOut) %update the auto plot parameters 2616 2621 if isfield(Field,'Mesh')&&~isempty(Field.Mesh) 2617 2622 ObjectData.Mesh=Field.Mesh; % gives an estimated mesh size (useful for mouse action on the plot) 2618 2623 end 2619 if imap==12620 UvData.axes3=ObjectData;2621 else2622 ViewFieldData=get(view_field_handle,'UserData');2623 ViewFieldData.axes3=ObjectData;2624 set(view_field_handle,'UserData',ViewFieldData)2625 end2624 % if imap==1 2625 % UvData.axes3=ObjectData; 2626 % else 2627 % ViewFieldData=get(view_field_handle,'UserData'); 2628 % ViewFieldData.axes3=ObjectData; 2629 % set(view_field_handle,'UserData',ViewFieldData) 2630 % end 2626 2631 end 2627 2632 if isequal(PlotType,'none') … … 2636 2641 end 2637 2642 2638 %write_plot_param(handles,UvData.Object{1}.PlotParam);% update the display of the plotting parameters2639 UvData.NewSeries=0;% put to 0 the test for a new field series (set by RootPath_callback)2640 set(handles.uvmat,'UserData',UvData)2641 2643 2642 2644 %% update the mask … … 3928 3930 histo_value=get(handles.histo1_menu,'Value'); 3929 3931 FieldName=histo_menu{histo_value}; 3930 % UvData=get(huvmat,'UserData');3931 3932 update_histo(handles.histo_u,huvmat,FieldName) 3932 3933 … … 3939 3940 histo_value=get(handles.histo2_menu,'Value'); 3940 3941 FieldName=histo_menu{histo_value}; 3941 % UvData=get(huvmat,'UserData');3942 3942 update_histo(handles.histo_v,huvmat,FieldName) 3943 3943 … … 4002 4002 end 4003 4003 end 4004 set(haxes,'XLimMode','auto')%reset auto mode (after zoom effect) 4005 set(haxes,'YLimMode','auto') 4006 plot_field(Histo,haxes); 4004 % set(haxes,'XLimMode','auto')%reset auto mode (after zoom effect) 4005 % set(haxes,'YLimMode','auto') 4006 PlotParam.Auto_xy=1; 4007 plot_field(Histo,haxes,PlotParam); 4007 4008 end 4008 4009 end … … 4186 4187 AxeData=UvData.axes3; 4187 4188 PlotParam=read_plot_param(handles); 4188 [P lotType,PlotParamOut]= plot_field(AxeData,haxes,PlotParam,1);4189 [PP,PlotParamOut]= plot_field(AxeData,haxes,PlotParam); 4189 4190 write_plot_param(handles,PlotParamOut); %update the auto plot parameters 4190 4191 … … 4307 4308 PlotHandles=guidata(hview_field); 4308 4309 end 4309 if ~isempty(ProjData) 4310 % if ~isempty(ProjData) 4311 'TEST' 4312 ProjData 4310 4313 plot_field(ProjData,PlotHandles.axes3,PlotHandles); 4311 end4314 % end 4312 4315 set(handles.uvmat,'UserData',UvData) 4313 4316 hother=findobj('Tag','proj_object');%find all the proj objects … … 4363 4366 % end 4364 4367 end 4365 pause(0.1)4368 % pause(0.1) 4366 4369 figure(hset_object)%put set_object in front 4367 4370
Note: See TracChangeset
for help on using the changeset viewer.