Changeset 187 for trunk/src/uvmat.m


Ignore:
Timestamp:
Feb 1, 2011, 1:07:28 AM (13 years ago)
Author:
sommeria
Message:

various bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r183 r187  
    217217UvData.OpenParam.CalOrigin=[0.95 -0.03];%position for geometry_calib (TO IMPROVE)
    218218UvData.OpenParam.CalSize=[0.28 1];
     219UvData.axes3=[];%initiate the record of plotted field
     220UvData.axes2=[];
     221UvData.axes1=[];
    219222
    220223%functions for the mouse and keyboard
     
    25202523    UvData.Object{1}.plotaxes=handles.axes3;%default plotting axis
    25212524end
     2525UvData.NewSeries=0;% put to 0 the test for a new field series (set by RootPath_callback)
     2526set(handles.uvmat,'UserData',UvData)
    25222527
    25232528%% reset the min and max of scalar if only the mask is displayed(TODO: check the need)
     
    26122617            view_field(ObjectData)
    26132618        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});
    26152620            write_plot_param(plot_handles{imap},PlotParamOut) %update the auto plot parameters
    26162621            if isfield(Field,'Mesh')&&~isempty(Field.Mesh)
    26172622                ObjectData.Mesh=Field.Mesh; % gives an estimated mesh size (useful for mouse action on the plot)
    26182623            end
    2619             if imap==1           
    2620                 UvData.axes3=ObjectData;
    2621             else
    2622                 ViewFieldData=get(view_field_handle,'UserData');
    2623                 ViewFieldData.axes3=ObjectData;
    2624                 set(view_field_handle,'UserData',ViewFieldData)
    2625             end
     2624%             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
    26262631        end
    26272632        if isequal(PlotType,'none')
     
    26362641end
    26372642
    2638 %write_plot_param(handles,UvData.Object{1}.PlotParam);% update the display of the plotting parameters
    2639 UvData.NewSeries=0;% put to 0 the test for a new field series (set by RootPath_callback)
    2640 set(handles.uvmat,'UserData',UvData)
    26412643
    26422644%% update the mask
     
    39283930histo_value=get(handles.histo1_menu,'Value');
    39293931FieldName=histo_menu{histo_value};
    3930 % UvData=get(huvmat,'UserData');
    39313932update_histo(handles.histo_u,huvmat,FieldName)
    39323933
     
    39393940histo_value=get(handles.histo2_menu,'Value');
    39403941FieldName=histo_menu{histo_value};
    3941 % UvData=get(huvmat,'UserData');
    39423942update_histo(handles.histo_v,huvmat,FieldName)
    39433943
     
    40024002            end
    40034003        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);
    40074008    end
    40084009end
     
    41864187AxeData=UvData.axes3;
    41874188PlotParam=read_plot_param(handles);
    4188 [PlotType,PlotParamOut]= plot_field(AxeData,haxes,PlotParam,1);
     4189[PP,PlotParamOut]= plot_field(AxeData,haxes,PlotParam);
    41894190write_plot_param(handles,PlotParamOut); %update the auto plot parameters
    41904191
     
    43074308    PlotHandles=guidata(hview_field);
    43084309end
    4309 if ~isempty(ProjData)
     4310% if ~isempty(ProjData)
     4311'TEST'
     4312ProjData
    43104313    plot_field(ProjData,PlotHandles.axes3,PlotHandles);
    4311 end
     4314% end
    43124315set(handles.uvmat,'UserData',UvData)
    43134316hother=findobj('Tag','proj_object');%find all the proj objects
     
    43634366    %     end
    43644367end
    4365 pause(0.1)
     4368% pause(0.1)
    43664369figure(hset_object)%put set_object in front
    43674370
Note: See TracChangeset for help on using the changeset viewer.