- Timestamp:
- Feb 19, 2015, 2:17:59 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r811 r874 36 36 function varargout = get_field(varargin) 37 37 38 % Last Modified by GUIDE v2.5 24-Apr-2014 22:45:3438 % Last Modified by GUIDE v2.5 18-Feb-2015 23:42:12 39 39 40 40 % Begin initialization code - DO NOT EDIT … … 66 66 guidata(hObject, handles); 67 67 set(hObject,'WindowButtonDownFcn',{'mouse_down'}) % allows mouse action with right button (zoom for uicontrol display) 68 set(hObject,'CloseRequestFcn',{@closefcn,handles}) 68 69 69 70 %% enter input data … … 256 257 257 258 %% set z coordinate menu if relevant 258 if Field.MaxDim>=3 259 if Field.MaxDim>=3 && prod(Field.DimValue)<10^8; % 3D field (with memory content smaller than 400 Mo) 259 260 set(handles.Check3D,'Value',1) 260 261 else … … 269 270 270 271 %------------------------------------------------------------------------ 271 % --- Outputs from this function are returned to the command line.272 %------------------------------------------------------------------------273 function varargout = get_field_OutputFcn(hObject, eventdata, handles)274 275 varargout{1} = handles.output;276 delete(handles.get_field)277 278 %------------------------------------------------------------------------279 272 % --- Executes when user attempts to close get_field. 280 273 %------------------------------------------------------------------------ 281 function get_field_CloseRequestFcn(hObject, eventdata, handles) 282 283 if isequal(get(handles.get_field, 'waitstatus'), 'waiting') 284 % The GUI is still in UIWAIT, us UIRESUME 285 uiresume(handles.get_field); 286 else 287 % The GUI is no longer waiting, just close it 288 delete(handles.get_field);289 end 290 291 % ------------------------------------------------------------------------292 % --- Executes on button press in OK.293 % ------------------------------------------------------------------------294 function OK_Callback(hObject, eventdata, handles) 295 296 handles.output=read_GUI(handles.get_field); 297 guidata(hObject, handles);% Update handles structure 298 uiresume(handles.get_field);299 drawnow 274 %------------------------------------------------------------------------ 275 276 277 % Use UIRESUME instead of delete because the OutputFcn needs 278 % to get the updated handles structure. 279 280 % function get_field_CloseRequestFcn(hObject, eventdata) 281 % handles.output=[]; 282 % guidata(hObject, handles);% Update handles structure 283 % %delete(handles.get_field); 284 % uiresume(handles.get_field); 285 %drawnow 286 % if isequal(get(handles.get_field, 'waitstatus'), 'waiting') 287 % % The GUI is still in UIWAIT, us UIRESUME 288 % uiresume(handles.get_field); 289 % else 290 % % The GUI is no longer waiting, just close it 291 % delete(handles.get_field); 292 % end 300 293 301 294 % ----------------------------------------------------------------------- … … 611 604 var_component=find(test_component);% list of variable indices elligible as unstructured coordinates 612 605 var_coord=find(test_coord);% % list of variable indices elligible as structured coordinates 613 ListCoord=Field.Display.ListVarName([var_component var_coord]); 606 var_coord(var_coord==scalar_index)=[]; 607 var_component(var_component==scalar_index)=[]; 608 ListCoord=Field.Display.ListVarName([var_coord var_component]); 614 609 615 610 %% set default coord selection … … 634 629 elseif strcmp(Role,'coord_y') 635 630 coord_val(2)=ilist; 631 elseif strcmp(Role,'coord_z') 632 coord_val(3)=ilist; 636 633 end 637 634 end 638 635 end 639 636 if numel(find(coord_val))<2 640 if numel(var_coord)>=2 641 coord_val=[numel(var_component)+2 numel(var_component)+1]; 637 if numel(var_coord)>=3 638 coord_val=[3 2 1]; 639 elseif numel(var_coord)>=2 640 % coord_val=[numel(var_component)+2 numel(var_component)+1]; 641 coord_val=[2 1]; 642 642 else 643 643 coord_val=[1 2]; … … 745 745 %% set list of possible coordinates 746 746 test_component=zeros(size(Field.Display.VarDimName));%=1 when variable #ilist is eligible as unstructured coordinate 747 test_coord=zeros(size(Field.Display.VarDimName)); %=1 when variable #ilist is eligible as structured coordi ante747 test_coord=zeros(size(Field.Display.VarDimName)); %=1 when variable #ilist is eligible as structured coordinate 748 748 check_consistent=1;%check that the selected vector components (and possibly color var) have the same dimensiosn 749 749 ListCoord={''}; … … 766 766 var_component=find(test_component);% list of variable indices elligible as unstructured coordinates 767 767 var_coord=find(test_coord);% % list of variable indices elligible as structured coordinates 768 ListCoord=Field.Display.ListVarName([var_component var_coord]); 768 var_component(var_component==vector_x_index|var_component==vector_y_index)=[]; 769 var_coord(var_coord==vector_x_index|var_coord==vector_y_index)=[];% remove vector components form te possible list of coordinates 770 ListCoord=Field.Display.ListVarName([var_coord var_component]); 769 771 770 772 %% set default coord selection … … 776 778 ListCoord={''}; 777 779 else 778 set(handles.Coord_x,'Value',2) 779 set(handles.Coord_y,'Value',1) 780 if numel(test_coord)>=3 781 set(handles.Coord_x,'Value',3) 782 set(handles.Coord_y,'Value',2) 783 set(handles.Coord_z,'Value',1) 784 else 785 set(handles.Coord_x,'Value',2) 786 set(handles.Coord_y,'Value',1) 787 end 780 788 end 781 789 else 782 coord_val=[0 0 ];790 coord_val=[0 0 0]; 783 791 for ilist=1:numel(var_component) 784 792 ivar=var_component(ilist); … … 789 797 elseif strcmp(Role,'coord_y') 790 798 coord_val(2)=ilist; 799 elseif strcmp(Role,'coord_z') 800 coord_val(3)=ilist; 791 801 end 792 802 end … … 797 807 if numel(find(coord_val))<2 798 808 %coord_val=[numel(var_component)+2 numel(var_component)+1]; 799 coord_val=[1 2 ];809 coord_val=[1 2 3]; 800 810 end 801 811 set(handles.Coord_x,'Value',coord_val(1)) 802 812 set(handles.Coord_y,'Value',coord_val(2)) 803 end 804 end 813 if numel(ListCoord)>=3 814 set(handles.Coord_z,'Value',coord_val(3)) 815 end 816 end 817 end 818 set(handles.Coord_z,'String',ListCoord) 805 819 set(handles.Coord_y,'String',ListCoord) 806 820 set(handles.Coord_x,'String',ListCoord) … … 1043 1057 % --- Executes on button press in Check3D. 1044 1058 function Check3D_Callback(hObject, eventdata, handles) 1045 if get(handles.Check3D,'Value') 1059 if get(handles.Check3D,'Value')% 3D fields 1046 1060 status='on'; 1047 else 1061 else% fields studied as 2D 1048 1062 status='off'; 1063 1049 1064 end 1050 1065 set(handles.Coord_z,'Visible',status) … … 1053 1068 set(handles.vector_z,'Visible',status) 1054 1069 set(handles.W_title,'Visible',status) 1070 Field=get(handles.get_field,'UserData'); 1071 if Field.MaxDim>=3% for 3D fields, propose to use the third variable as time 1072 menu=get(handles.SwitchVarIndexTime,'String'); 1073 val=find(strcmp('variable',menu)); 1074 if ~isempty(val) 1075 set(handles.SwitchVarIndexTime,'Value',val) 1076 SwitchVarIndexTime_Callback(handles.SwitchVarIndexTime,[], handles) 1077 end 1078 end 1079 1080 %------------------------------------------------------------------------ 1081 % --- Executes on button press in OK. 1082 %------------------------------------------------------------------------ 1083 function OK_Callback(hObject, eventdata, handles) 1084 handles.output=read_GUI(handles.get_field); 1085 guidata(hObject, handles);% Update handles structure 1086 uiresume(handles.get_field); 1087 drawnow 1088 % this function then activate get_field_OutputFcn 1089 1090 %------------------------------------------------------------------------ 1091 % --- Executes when the GUI is closed by the mouse on upper right corner. 1092 %------------------------------------------------------------------------ 1093 function closefcn(hObject, eventdata, handles) 1094 handles.output=[]; 1095 guidata(hObject, handles);% Update handles structure 1096 uiresume(handles.get_field); 1097 drawnow 1098 1099 %------------------------------------------------------------------------ 1100 % --- Outputs from this function are returned to the command line. 1101 %------------------------------------------------------------------------ 1102 function varargout = get_field_OutputFcn(hObject, eventdata, handles) 1103 1104 varargout{1} =handles.output; 1105 delete(handles.get_field) -
trunk/src/num2stra.m
r809 r874 1 1 %'num2stra': transform number to the corresponding character string depending on the nomenclature 2 2 %-------------------------------------------- 3 % function str=num2stra(num,nom_type )3 % function str=num2stra(num,nom_type,index) 4 4 % 5 5 % OUTPUT: … … 9 9 % num: input number (file index) 10 10 % nom_type: nomencalture type (see fct name_generator) 11 % 11 % index: 1 or 2 (first or secodn index in file naming) 12 12 % see also: stra2num, name_generator, name2display 13 13 -
trunk/src/plot_field.m
r873 r874 201 201 CheckHold= PlotParam.CheckHold; 202 202 end 203 PlotParamOut .Axes=plot_profile(Data,CellInfo(index_1D),haxes,PlotParamOut.Axes,CheckHold);%203 PlotParamOut=plot_profile(Data,CellInfo(index_1D),haxes,PlotParamOut,CheckHold);% 204 204 if isempty(index_2D) 205 205 if isfield(PlotParamOut,'Vectors') … … 224 224 if ~(isfield(PlotParamOut,'Axes')&&isfield(PlotParamOut.Axes,'TextDisplay')&&(PlotParamOut.Axes.TextDisplay)) % if text is not already given as statistics 225 225 htext=findobj(hfig,'Tag','TableDisplay'); 226 hchecktable=findobj(hfig,'Tag','CheckTable');227 if ~isempty(htext) &&~isempty(hchecktable)226 % hchecktable=findobj(hfig,'Tag','CheckTable'); 227 if ~isempty(htext)%&&~isempty(hchecktable) 228 228 if isempty(index_0D) 229 229 % set(htext,'Data',{}) … … 234 234 errormsg=plot_text(Data,CellInfo(index_0D),htext); 235 235 set(htext,'visible','on') 236 set(hchecktable,'visible','on')237 set(hchecktable,'Value',1)236 % set(hchecktable,'visible','on') 237 % set(hchecktable,'Value',1) 238 238 end 239 239 set(hfig,'Unit','pixels'); … … 261 261 %% update the parameters stored in AxeData 262 262 if ishandle(haxes)&&( ~isempty(index_2D)|| ~isempty(index_1D)) 263 % AxeData=[];264 263 if isfield(PlotParamOut,'MinX') 265 264 AxeData.RangeX=[PlotParamOut.MinX PlotParamOut.MaxX]; … … 362 361 % --- plot 1D fields (usual x,y plots) 363 362 %------------------------------------------------------------------- 364 function CoordinatesOut=plot_profile(data,CellInfo,haxes,Coordinates,CheckHold)363 function PlotParamOut=plot_profile(data,CellInfo,haxes,PlotParam,CheckHold) 365 364 366 365 %% initialization 367 if ~ exist('Coordinates','var')366 if ~(exist('PlotParam','var')&&~isempty(PlotParam.Axes)) 368 367 Coordinates=[]; 369 end 370 CoordinatesOut=Coordinates; %default 368 PlotParamOut.Axes=Coordinates; 369 else 370 Coordinates=PlotParam.Axes; 371 PlotParamOut=PlotParam; 372 end 371 373 hfig=get(haxes,'parent'); 372 374 legend_str={}; … … 545 547 if ~isempty(MinX) 546 548 if check_lim 547 Coordinates Out.MinX=min(min(MinX),CoordinatesOut.MinX);548 Coordinates Out.MaxX=max(max(MaxX),CoordinatesOut.MaxX);549 else 550 Coordinates Out.MinX=min(MinX);551 Coordinates Out.MaxX=max(MaxX);549 Coordinates.MinX=min(min(MinX),Coordinates.MinX); 550 Coordinates.MaxX=max(max(MaxX),Coordinates.MaxX); 551 else 552 Coordinates.MinX=min(MinX); 553 Coordinates.MaxX=max(MaxX); 552 554 end 553 555 end 554 556 if ~isempty(MinY_cell) 555 557 if check_lim 556 Coordinates Out.MinY=min(min(MinY_cell),CoordinatesOut.MinY);557 Coordinates Out.MaxY=max(max(MaxY_cell),CoordinatesOut.MaxY);558 else 559 Coordinates Out.MinY=min(MinY_cell);560 Coordinates Out.MaxY=max(MaxY_cell);558 Coordinates.MinY=min(min(MinY_cell),Coordinates.MinY); 559 Coordinates.MaxY=max(max(MaxY_cell),Coordinates.MaxY); 560 else 561 Coordinates.MinY=min(MinY_cell); 562 Coordinates.MaxY=max(MaxY_cell); 561 563 end 562 564 end … … 570 572 set(haxes,'DataAspectRatioMode','auto')%automatic aspect ratio 571 573 AspectRatio=get(haxes,'DataAspectRatio'); 572 CoordinatesOut.AspectRatio=AspectRatio(1)/AspectRatio(2); 573 end 574 Coordinates.AspectRatio=AspectRatio(1)/AspectRatio(2); 575 end 576 PlotParamOut.Axes= Coordinates; 574 577 575 578 %% give statistics for pdf … … 577 580 TableData={'Variable';'SampleNbr';'bin size';'Mean';'RMS';'Skewness';'Kurtosis';' centered ';... 578 581 'Min';'FirstCentile';'FirstDecile';'Median';'LastDecile';'LastCentile';'Max'}; 579 CoordinatesOut.TextDisplay=0; 582 %PlotParamOut.TableDisplay={}; 583 TextDisplay=0; 580 584 for icell=1:numel(CellInfo) 581 585 if isfield(CellInfo{icell},'VarIndex_histo') 582 586 check_stat=1; 583 CoordinatesOut.TextDisplay=1;587 TextDisplay=1; 584 588 VarName=data.ListVarName{CellInfo{icell}.CoordIndex}; 585 589 pdf_val=data.(data.ListVarName{CellInfo{icell}.VarIndex_histo}); … … 597 601 Val(5)=(sum(x.*x.*x.*pdf_val))/(Variance*Val(4));%skewness 598 602 Val(6)=(sum(x.*x.*x.*x.*pdf_val))/(Variance*Variance);%kurtosis 599 cumpdf=cumsum(pdf_val); 603 cumpdf=cumsum(pdf_val);% sum of pdf 600 604 ind_centile=find(cumpdf>=0.01,1);% first index with cumsum >=0.01 601 Val(8)=(cumpdf(ind_centile)-0.01)*x(ind_centile-1)+(0.01-cumpdf(ind_centile-1))*x(ind_centile); 602 Val(8)=Val(8)/(cumpdf(ind_centile)-cumpdf(ind_centile-1));%linear interpolation near ind_centile 605 Val(8)=x(ind_centile)+Val(2)/2;% 606 if ind_centile>1 607 Val(8)=(cumpdf(ind_centile)-0.01)*x(ind_centile-1)+(0.01-cumpdf(ind_centile-1))*x(ind_centile); 608 Val(8)=Val(8)/(cumpdf(ind_centile)-cumpdf(ind_centile-1))+Val(2)/2;%linear interpolation near ind_centile 609 end 603 610 ind_decile=find(cumpdf>=0.1,1); 604 Val(9)=(cumpdf(ind_decile)-0.1)*x(ind_decile-1)+(0.1-cumpdf(ind_decile-1))*x(ind_decile); 605 Val(9)=Val(9)/(cumpdf(ind_decile)-cumpdf(ind_decile-1));%linear interpolation near ind_decile; 611 if ind_decile>1 612 Val(9)=x(ind_decile)+Val(2)/2;% 613 Val(9)=(cumpdf(ind_decile)-0.1)*x(ind_decile-1)+(0.1-cumpdf(ind_decile-1))*x(ind_decile); 614 Val(9)=Val(9)/(cumpdf(ind_decile)-cumpdf(ind_decile-1))+Val(2)/2;%linear interpolation near ind_decile; 615 end 606 616 ind_median=find(cumpdf>= 0.5,1); 607 617 Val(10)=(cumpdf(ind_median)-0.5)*x(ind_median-1)+(0.5-cumpdf(ind_median-1))*x(ind_median); 608 Val(10)=Val(10)/(cumpdf(ind_median)-cumpdf(ind_median-1)) ;%linear interpolation near ind_median;618 Val(10)=Val(10)/(cumpdf(ind_median)-cumpdf(ind_median-1))+Val(2)/2;%linear interpolation near ind_median; 609 619 % Val(9)=x(ind_median); 610 620 ind_decile=find(cumpdf>=0.9,1); 611 621 Val(11)=(cumpdf(ind_decile)-0.9)*x(ind_decile-1)+(0.9-cumpdf(ind_decile-1))*x(ind_decile); 612 Val(11)=Val(11)/(cumpdf(ind_decile)-cumpdf(ind_decile-1)) ;%linear interpolation near ind_median;622 Val(11)=Val(11)/(cumpdf(ind_decile)-cumpdf(ind_decile-1))+Val(2)/2;%linear interpolation near ind_median; 613 623 ind_centile=find(cumpdf>=0.99,1); 614 624 Val(12)=(cumpdf(ind_centile)-0.99)*x(ind_centile-1)+(0.99-cumpdf(ind_centile-1))*x(ind_centile); 615 Val(12)=Val(12)/(cumpdf(ind_centile)-cumpdf(ind_centile-1));%linear interpolation near ind_centile; 616 Val(13)=max(x); 625 Val(12)=Val(12)/(cumpdf(ind_centile)-cumpdf(ind_centile-1))+Val(2)/2;%linear interpolation near ind_centile; 617 626 Column=mat2cell(Val,ones(13,1),1); 618 627 Column=[{VarName};Column(1:6);{'stat: --'};Column(7:13)]; … … 620 629 end 621 630 end 622 if CoordinatesOut.TextDisplay;631 if TextDisplay; 623 632 disp(TableData); 624 htable=findobj(hfig,'Tag','TableDisplay'); 625 set(htable,'Data',TableData) 626 set(htable,'Visible','on') 627 drawnow 633 PlotParamOut.TableDisplay=TableData; 634 % PlotParamOut.CheckTable=1; 635 % htable=findobj(hfig,'Tag','TableDisplay'); 636 % set(htable,'Data',TableData) 637 % set(htable,'Visible','on') 638 % drawnow 639 else 640 if isfield(PlotParamOut,'TableDisplay') 641 PlotParamOut=rmfield(PlotParamOut,'TableDisplay'); 642 end 628 643 end 629 644 -
trunk/src/series/civ_input.m
r873 r874 373 373 374 374 %% Civ1 parameters 375 Param.CheckCiv1=1;375 %Param.CheckCiv1=1; 376 376 Param.Civ1.CorrBoxSize=[25 25]; 377 377 Param.Civ1.SearchBoxSize=[55 55]; … … 387 387 388 388 %% Fix1 parameters 389 Param.CheckFix1=1;389 %Param.CheckFix1=1; 390 390 Param.Fix1.CheckFmin2=1; 391 391 Param.Fix1.CheckF3=1; … … 393 393 394 394 %% Patch1 parameters 395 Param.CheckPatch1=1;395 %Param.CheckPatch1=1; 396 396 Param.Patch1.FieldSmooth=10; 397 397 Param.Patch1.MaxDiff=1.5000; … … 400 400 401 401 %% Civ2 parameters 402 Param.CheckCiv2=1;402 %Param.CheckCiv2=1; 403 403 Param.Civ2.CorrBoxSize=[21 21]; 404 404 Param.Civ2.SearchBoxSize=[27 27]; … … 413 413 414 414 %% Fix2 parameters 415 Param.CheckFix2=1;415 %Param.CheckFix2=1; 416 416 Param.Fix2.CheckFmin2=1; 417 417 Param.Fix2.CheckF4=1; … … 420 420 421 421 %% Patch2 parameters 422 Param.CheckPatch2=1;422 %Param.CheckPatch2=1; 423 423 Param.Patch2.FieldSmooth=2; 424 424 Param.Patch2.MaxDiff=1.5000; -
trunk/src/series/merge_proj.m
r867 r874 446 446 if iview==1 447 447 %MergeData.(VarName)=Data{1}.(VarName);% initiate MergeData with the first field 448 MergeData.(VarName)(check_bad)=0; %set to zero NaN or data marked by error flag 448 449 NbAver=~check_bad;% initiate NbAver: the nbre of good data for each point 449 450 elseif size(Data{iview}.(VarName))~=size(MergeData.(VarName)) -
trunk/src/series/time_series.m
r872 r874 92 92 end 93 93 end 94 % test for subtraction 95 if size(Param.InputTable,1)==2 96 answer=msgbox_uvmat('INPUT_Y-N','substract the two input file series (Yes) or concatene them (No)'); 97 ParamOut.ActionInput.CheckSub=str2double(answer); 98 end 94 99 % check the existence of the first and last file in the series 95 100 first_j=[]; … … 161 166 CheckNc=cell(1,nbview); 162 167 frame_index=cell(1,nbview); 168 163 169 for iview=1:nbview 164 170 if ~exist(filecell{iview,1}','file') … … 284 290 VarMesh=Param.ActionInput.VarMesh; 285 291 end 292 end 293 CheckSub=0;%default 294 if isfield(Parma,'ActionInput') && isfield(Param.ActionInput,'CheckSub') 295 CheckSub=ParamOut.ActionInput.CheckSub; 286 296 end 287 297 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% … … 312 322 % coordinate transform (or other user defined transform) 313 323 if ~isempty(transform_fct) 314 switch nargin(transform_fct) 315 case 4 316 if length(Data)==2 317 Field=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2}); 318 else 324 if CheckSub 325 switch nargin(transform_fct) 326 case 4 327 if length(Data)==2 328 Field=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2}); 329 else 330 Field=transform_fct(Data{1},XmlData{1}); 331 end 332 case 3 333 if length(Data)==2 334 Field=transform_fct(Data{1},XmlData{1},Data{2}); 335 else 336 Field=transform_fct(Data{1},XmlData{1}); 337 end 338 case 2 319 339 Field=transform_fct(Data{1},XmlData{1}); 320 end 321 case 3 322 if length(Data)==2 323 Field=transform_fct(Data{1},XmlData{1},Data{2}); 324 else 325 Field=transform_fct(Data{1},XmlData{1}); 326 end 327 case 2 328 Field=transform_fct(Data{1},XmlData{1}); 329 case 1 330 Field=transform_fct(Data{1}); 340 case 1 341 Field=transform_fct(Data{1}); 342 end 343 else 344 if nargin(transform_fct)>=2 345 for iview=1:nbview 346 Data{iview}=transform_fct(Data{iview},XmlData{iview}); 347 end 348 else 349 for iview=1:nbview 350 Data{iview}=transform_fct(Data{iview}); 351 end 352 end 331 353 end 332 354 end … … 344 366 end 345 367 end 346 % nbfile=nbfile+1;368 % nbfile=nbfile+1; 347 369 348 370 % initiate the time series at the first iteration … … 441 463 VarVal=Field.(VarName); 442 464 if testsum(ivar)==2% test for recorded variable 443 if isempty(errormsg) 465 if isempty(errormsg) 444 466 VarVal=shiftdim(VarVal,-1); %shift dimension 445 467 DataOut.(VarName)(index,:,:)=VarVal;%concanete the current field to the time series -
trunk/src/uvmat.m
r871 r874 1692 1692 % detect the file type, get the movie object if relevant, and look for the corresponding file series: 1693 1693 [RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,tild,FileInfo,MovieObject]=find_file_series(fullfile(RootPath,SubDir),[RootFile FileIndices FileExt]); 1694 errormsg=''; 1694 1695 if isempty(i1_series) 1695 1696 fileinput=uigetfile_uvmat('pick an input file',fullfile(RootPath,SubDir)); … … 2091 2092 set(handles.pxcmx,'Visible','off') 2092 2093 set(handles.pxcmy,'Visible','off') 2094 if index==1 2093 2095 set(handles.TransformName,'Value',1); % no transform by default 2096 end 2094 2097 else 2095 2098 set(handles.pxcmx,'Visible','on') … … 2105 2108 set(handles.pxcmy,'String',num2str(pixcmy)) 2106 2109 end 2107 if ~get(handles.CheckFixLimits,'Value') 2110 if ~get(handles.CheckFixLimits,'Value')&& index==1 2108 2111 set(handles.TransformName,'Value',3); % phys transform by default if fixedLimits is off 2109 2112 end … … 3771 3774 else 3772 3775 [PlotType,PlotParamOut]=plot_field(ObjectData,haxes(imap),PlotParam{imap}); 3773 if ~isempty(regexp(PlotType,'^error')) 3776 if ~isempty(regexp(PlotType,'^error'))%exit in case of plotting error 3774 3777 if ~isempty(regexp(PlotType,'attempt to plot two vector fields')) 3775 3778 set(handles.CheckEditObject,'Value',1) 3776 CheckEditObject_Callback([], [], handles) 3779 CheckEditObject_Callback([], [], handles)% propose to edit the main projection plane 3777 3780 hset_object=findobj(allchild(0),'Tag','set_object');%find the GUI set_object 3778 3781 hhset_object=guidata(hset_object);% … … 3785 3788 errormsg=fill_GUI(PlotParamOut,handles.uvmat); 3786 3789 else 3787 errormsg=fill_GUI(PlotParamOut,view_field_handle); 3790 errormsg=fill_GUI(PlotParamOut,view_field_handle);%TODO: check effect on text display 3788 3791 end 3789 3792 for list={'Scalar','Vectors'}
Note: See TracChangeset
for help on using the changeset viewer.