Changeset 595 for trunk/src/uvmat.m


Ignore:
Timestamp:
Mar 29, 2013, 9:03:29 PM (8 years ago)
Author:
sommeria
Message:

steps further to use series with cluster. Some bsolete functions removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r591 r595  
    7373%               _____________|____________
    7474%              |                          |                   
    75 %        proj_field.m               proj_field.m       project the field on the projection objects (use calc_field.m)           
     75%        proj_field.m               proj_field.m       project the field on the projection objects (use set_field_list.m)           
    7676%              |                          |
    7777%         UvData.PlotAxes          ViewData.PlotAxes (on view_field)
     
    10411041        set(handles_Fields,'Value',1)
    10421042        set(handles_Fields,'String',{'get_field...'})
    1043         hget_field=get_field(FileName);
    1044         hhget_field=guidata(hget_field);
    1045         get_field('RUN_Callback',hhget_field.RUN,[],hhget_field);
     1043        FieldName_Callback([],[], handles)
     1044%         hget_field=get_field(FileName);
     1045%         hhget_field=guidata(hget_field);
     1046%         get_field('RUN_Callback',hhget_field.RUN,[],hhget_field);
    10461047    otherwise
    10471048        set(handles_Fields,'Value',1) % set menu to 'image'
     
    21212122    ParamIn.VelType=VelType;
    21222123    XNameMenu=get(handles.Coord_x,'String');
    2123     ParamIn.Coord_x=XNameMenu(get(handles.Coord_x,'Value'));
     2124    if ~isempty(XNameMenu)
     2125        ParamIn.Coord_x=XNameMenu(get(handles.Coord_x,'Value'));
     2126    end
    21242127    YNameMenu=get(handles.Coord_y,'String');
    2125     ParamIn.Coord_y=YNameMenu(get(handles.Coord_y,'Value'));
     2128    if ~isempty(YNameMenu)
     2129        ParamIn.Coord_y=YNameMenu(get(handles.Coord_y,'Value'));
     2130    end
    21262131end
    21272132check_tps = 0;         
     
    25972602    set(handles.ListObject_1,'Visible','off')
    25982603    [PlotType,PlotParamOut]=plot_field(UvData.Field,handles.PlotAxes,read_GUI(handles.uvmat));
    2599     write_plot_param(handles,PlotParamOut) %update the auto plot parameters
     2604    errormsg=fill_GUI(PlotParamOut,handles.uvmat);
     2605    %write_plot_param(handles,PlotParamOut) %update the auto plot parameters
    26002606   
    26012607%% 2D or 3D fieldname are generally projected
     
    27042710            else
    27052711                [PlotType,PlotParamOut]=plot_field(ObjectData,haxes(imap),PlotParam{imap},PosColorbar{imap});
    2706                 write_plot_param(plot_handles{imap},PlotParamOut) %update the auto plot parameters
     2712                if imap==1
     2713                errormsg=fill_GUI(PlotParamOut,handles.uvmat);
     2714                else
     2715                    errormsg=fill_GUI(PlotParamOut,hview_field);
     2716                end
     2717                %write_plot_param(plot_handles{imap},PlotParamOut) %update the auto plot parameters
    27072718                if isfield(Field,'CoordMesh')&&~isempty(Field.CoordMesh)
    27082719                    ObjectData.CoordMesh=Field.CoordMesh; % gives an estimated mesh size (useful for mouse action on the plot)
     
    31043115    FieldList={};
    31053116    VecColorList={};
    3106     XName='';
    3107     YName='';
     3117    XName=GetFieldData.XVarName;
    31083118    if GetFieldData.CheckVector
    31093119        UName=GetFieldData.PanelVectors.vector_x;
     
    31133123        CName=GetFieldData.PanelVectors.vec_color;
    31143124        [FieldList,VecColorList]=set_field_list(UName,VName,CName);
    3115 %         FieldList={['vec(' UName ',' VName ')'];...
    3116 %             ['norm(' UName ',' VName ')'];...
    3117 %             ['curl(' UName ',' VName ')'];...
    3118 %             ['div(' UName ',' VName ')'];...
    3119 %             ['strain(' UName ',' VName ')']};
    3120 %         VecColorList={['norm(' UName ',' VName ')'];...
    3121 %             UName;...
    3122 %             VName};...
    3123 %             if ~isempty(CName)
    3124 %             VecColorList=[{CName};VecColorList];
    3125 %             end
    3126     end
    3127     if GetFieldData.CheckScalar
     3125    elseif GetFieldData.CheckScalar
    31283126        AName=GetFieldData.PanelScalar.scalar;
    31293127        XName=GetFieldData.XVarName;
    31303128        YName=GetFieldData.YVarName;
    31313129        FieldList={AName};
    3132     end
    3133     if GetFieldData.CheckPlot1D
    3134         XName=GetFieldData.CheckPlot1D.abscissa;
     3130    elseif GetFieldData.CheckPlot1D;
    31353131        YName=GetFieldData.CheckPlot1D.ordinate;
    31363132    end
     
    41014097PlotParam=read_GUI(handles.uvmat);
    41024098[tild,PlotParamOut]= plot_field(AxeData,handles.PlotAxes,PlotParam);
    4103 write_plot_param(handles,PlotParamOut); %update the auto plot parameters
     4099errormsg=fill_GUI(PlotParamOut,handles.uvmat);
     4100%write_plot_param(handles,PlotParamOut); %update the auto plot parameters
    41044101
    41054102%------------------------------------------------------------------------
     
    41834180    hhview_field=guidata(hview_field);
    41844181    ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData
    4185     [PlotType,PlotParam]=plot_field(ProjData,hhview_field.PlotAxes,read_GUI(hview_field));%read plotting parameters on the uvmat interfachhview_fiel
    4186     write_plot_param(hhview_field,PlotParam); %update the display of plotting parameters for the current object
     4182    [PlotType,PlotParam]=plot_field(ProjData,hhview_field.PlotAxes,read_GUI(hview_field));%read plotting parameters on the uvmat interface
     4183   
     4184    %write_plot_param(hhview_field,PlotParam); %update the display of plotting parameters for the current object
    41874185    haxes=findobj(hview_field,'tag','axes3');
    41884186    pos=get(hview_field,'Position'); 
     
    43784376    hhview_field=guidata(hview_field);
    43794377    [PlotType,PlotParam]=plot_field(ProjData,hhview_field.PlotAxes,read_GUI(hview_field));%read plotting parameters on the GUI view_field);
    4380     write_plot_param(hhview_field,PlotParam); %update the display of plotting parameters for the current object
     4378    errormsg=fill_GUI(PlotParam,hview_field);
     4379    %write_plot_param(hhview_field,PlotParam); %update the display of plotting parameters for the current object
    43814380    haxes=findobj(hview_field,'tag','axes3');
    43824381    pos=get(hview_field,'Position');
Note: See TracChangeset for help on using the changeset viewer.