Changeset 595 for trunk/src/uvmat.m
- Timestamp:
- Mar 29, 2013, 9:03:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r591 r595 73 73 % _____________|____________ 74 74 % | | 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) 76 76 % | | 77 77 % UvData.PlotAxes ViewData.PlotAxes (on view_field) … … 1041 1041 set(handles_Fields,'Value',1) 1042 1042 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); 1046 1047 otherwise 1047 1048 set(handles_Fields,'Value',1) % set menu to 'image' … … 2121 2122 ParamIn.VelType=VelType; 2122 2123 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 2124 2127 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 2126 2131 end 2127 2132 check_tps = 0; … … 2597 2602 set(handles.ListObject_1,'Visible','off') 2598 2603 [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 2600 2606 2601 2607 %% 2D or 3D fieldname are generally projected … … 2704 2710 else 2705 2711 [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 2707 2718 if isfield(Field,'CoordMesh')&&~isempty(Field.CoordMesh) 2708 2719 ObjectData.CoordMesh=Field.CoordMesh; % gives an estimated mesh size (useful for mouse action on the plot) … … 3104 3115 FieldList={}; 3105 3116 VecColorList={}; 3106 XName=''; 3107 YName=''; 3117 XName=GetFieldData.XVarName; 3108 3118 if GetFieldData.CheckVector 3109 3119 UName=GetFieldData.PanelVectors.vector_x; … … 3113 3123 CName=GetFieldData.PanelVectors.vec_color; 3114 3124 [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 3128 3126 AName=GetFieldData.PanelScalar.scalar; 3129 3127 XName=GetFieldData.XVarName; 3130 3128 YName=GetFieldData.YVarName; 3131 3129 FieldList={AName}; 3132 end 3133 if GetFieldData.CheckPlot1D 3134 XName=GetFieldData.CheckPlot1D.abscissa; 3130 elseif GetFieldData.CheckPlot1D; 3135 3131 YName=GetFieldData.CheckPlot1D.ordinate; 3136 3132 end … … 4101 4097 PlotParam=read_GUI(handles.uvmat); 4102 4098 [tild,PlotParamOut]= plot_field(AxeData,handles.PlotAxes,PlotParam); 4103 write_plot_param(handles,PlotParamOut); %update the auto plot parameters 4099 errormsg=fill_GUI(PlotParamOut,handles.uvmat); 4100 %write_plot_param(handles,PlotParamOut); %update the auto plot parameters 4104 4101 4105 4102 %------------------------------------------------------------------------ … … 4183 4180 hhview_field=guidata(hview_field); 4184 4181 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 4187 4185 haxes=findobj(hview_field,'tag','axes3'); 4188 4186 pos=get(hview_field,'Position'); … … 4378 4376 hhview_field=guidata(hview_field); 4379 4377 [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 4381 4380 haxes=findobj(hview_field,'tag','axes3'); 4382 4381 pos=get(hview_field,'Position');
Note: See TracChangeset
for help on using the changeset viewer.