Changeset 187 for trunk/src/view_field.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/view_field.m

    r180 r187  
    9090set(hObject,'WindowButtonUpFcn',{'mouse_up',handles_mouse})
    9191set(hObject,'CloseRequestFcn',{@closefcn})%
     92ViewFieldData.axes3=[];%initiates the record of the current field (will be updated by plot_field)
     93set(handles.view_field,'UserData',ViewFieldData);%store the current field
    9294if ~exist('Field','var')
    9395    return
    9496end
    95 
     97'TESviewfield'
    9698[PlotType,PlotParamOut]= plot_field(Field,handles.axes3);%,PlotParam,KeepLim,PosColorbar)
    97 ViewFieldData.axes3=Field;
    98 set(handles.view_field,'UserData',ViewFieldData);%store the current field
     99
    99100if isfield(PlotParamOut,'Vectors')
    100101    set(handles.VECT_title,'Visible','on')
     
    285286    set(handles.auto_xy,'BackgroundColor',[0.7 0.7 0.7])
    286287    update_plot(handles)
    287 %     axis(handles.axes3,'image')
    288288end
    289289
     
    699699%-------------------------------------------------------------------
    700700haxes= handles.axes3;
    701 %huvmat=findobj(allchild(0),'tag','uvmat');
    702 ProjField=get(haxes,'UserData');
     701
     702%ProjField=get(haxes,'UserData');
     703ViewFieldData=get(handles.view_field,'UserData');
     704ProjField=ViewFieldData.axes3;
     705%ProjField=get(haxes,'UserData');
    703706PlotParam=read_plot_param(handles);
    704707[PlotType,PlotParamOut]= plot_field(ProjField,haxes,PlotParam,1);
Note: See TracChangeset for help on using the changeset viewer.