- Timestamp:
- Mar 30, 2010, 11:03:42 AM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ_3D.m
r71 r72 581 581 first_i=max(field_i+1,1); 582 582 %determine the set of times and possible intervals for CIV_3D 583 dt=(1/1000)*str2num(get(handles.dt,'String'));584 time=( dt*[0:nb_field-1])';583 % dt=(1/1000)*str2num(get(handles.dt,'String')); 584 time=(0:nb_field-1)'; 585 585 % set(handles.incr_i,'UserData',dt);%store the time interval 586 586 % between successive images … … 594 594 last_j=1; 595 595 end 596 UvData.XmlData=XmlData;597 596 598 597 if exist('time','var') … … 1548 1547 for ifile=1:nbfield 1549 1548 i_cmd=0; 1550 cmd='';1551 if sge1552 1549 cmd='#!/bin/bash'; 1553 1550 cmd=char({cmd;'#$ -cwd'}); 1554 1551 cmd=char({cmd;'hostname && date'}); 1555 end1556 1552 filename_cmx=cell2mat(filecell_nc1(ifile));%output netcdf file 1557 1553 filename_cmx([end-1:end])='cm';%name of cmx file … … 1579 1575 pvalue=num2str((1-ind_answer)*500) 1580 1576 save(civAllxml,par_civ1_3d_xml); 1581 1582 % if(isunix && sge) 1583 ['echo /CIVX/bin/MPI/lam-7.1.3_g95/bin/mpirun C ' Civ3D3CBin ' -p ' par_civ1_3d_xml '|qsub -p ' pvalue ' -q lam.q -pe lam_loose 16 -e ' par_civ1_3d_xml '.errors -o ' par_civ1_3d_xml '.log' ] 1584 eval ( ['!echo /CIVX/bin/MPI/lam-7.1.3_g95/bin/mpirun C ' Civ3D3CBin ' -p ' par_civ1_3d_xml '|qsub -p ' pvalue ' -q lam.q -pe lam_loose 16 -e ' par_civ1_3d_xml '.errors -o ' par_civ1_3d_xml '.log' ]) 1585 % else 1586 % '3D mode is NOT supported without sge' 1587 % end 1588 return 1589 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1590 % fichier xml produit 1591 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1592 % A CONTINUER 1593 %civAllxml 1594 civAllCmd=[]; 1595 civAllxml=set(civAllxml,1,'name','civ3d3c'); 1596 namelog=[filename_cmx([1:end-3]) 'log']; 1597 %par_civ1.Dt=num2str(time(num2_civ1(ifile),num_b_civ1(j))-time(num1_civ1(ifile),num_a_civ1(1))); 1598 %par_civ1.T0=num2str((time(num2_civ1(ifile),num_b_civ1(j))+time(num1_civ1(ifile),num_a_civ1(1)))/2); 1599 % test_mask=get(handles.get_mask_civ1,'Value'); 1600 i_cmd=i_cmd+1; 1601 % if isequal(civAll,0) 1602 % cmd=char({cmd;BATCH_CIV1(filename_cmx([1:end-4]),namelog,par_civ1,handles)}); 1603 % else 1604 civAllCmd=[civAllCmd ' civ1 ']; 1605 str=BATCH_CIV1_Unified(filename_cmx([1:end-4]),namelog,par_civ1,handles); 1606 fieldnames=fields(str); 1607 [civAllxml,uid_civ1]=add(civAllxml,1,'element','civ1'); 1608 for ilist=1:length(fieldnames) 1609 val=eval(['str.' fieldnames{ilist}]); 1610 if ischar(val) 1611 [civAllxml,uid_t]=add(civAllxml,uid_civ1,'element',fieldnames{ilist}); 1612 [civAllxml,uid_t2]=add(civAllxml,uid_t,'chardata',val); 1613 end 1614 end 1615 % end 1616 end 1617 if(isunix) 1618 cmd=char({cmd ; ['cp -f ' filename_cmx '2 ' filename_cmx]; cmd_CIV2}); 1619 else 1620 cmd=char({cmd ; ['copy /Y ' filename_cmx '2 ' filename_cmx]; cmd_CIV2}); 1621 end 1622 end 1623 1624 % if isequal(civAll,1) 1625 save(civAllxml,[filename_cmx([1:end-4]) '.xml']); 1626 cmd=char({cmd;[Civ_exe ' -f ' [filename_cmx([1:end-4]) '.xml'] ' ' civAllCmd]}); 1627 1628 %save(civAllxml,'/tmp/test.xml'); 1629 % end 1630 1631 1632 % create the .bat file: 1633 if sge 1634 [Rootbat,Filebat,extbat]=fileparts(filename_cmx); 1635 filename_bat=fullfile(Rootbat,['job_' Filebat extbat]); 1636 else 1637 filename_bat=filename_cmx; 1638 end 1639 filename_bat(end-2:end)='bat'; 1640 1641 % pbat=fopen(filename_bat,'w'); %create the file filename_bat 1642 dlmwrite(filename_bat,cmd,'');%write commands in filename_bat 1643 if sge 1644 pvalue=num2str((1-ind_answer)*500); 1645 namelog=[filename_bat '.patch.log']; 1646 ['!qsub -p ' pvalue ' -q civ_3D.q -e ' filename_cmx(1:end-4) '.errors -o ' filename_cmx(1:end-4) '.log' ' ' filename_bat]; 1647 eval( ['!qsub -p ' pvalue ' -q civ_3D.q -e ' filename_cmx(1:end-4) '.errors -o ' filename_cmx(1:end-4) '.log' ' ' filename_bat]); 1648 else 1649 if(isunix) 1650 cmdtodo=['. ' filename_bat ];%removed for Mathieu tests %' && rm -f ' filename_bat] ; 1651 else 1652 % cmdtodo=[filename_bat ' && del /F /Q ' filename_bat]; 1653 cmdtodo=[filename_bat];%removed for Mathieu tests %' && del /F /Q ' filename_bat' ; 1654 end 1655 count= fprintf(p1,'%s\n', cmdtodo); 1656 end 1657 if ~sge 1658 fclose(p1); 1659 fclose(p0); 1660 delete(name_lock); 1661 end 1577 nb_processor='8'; 1578 ['echo /CIVX/bin/MPI/lam-7.1.3_g95/bin/mpirun C ' Civ3D3CBin ' -p ' par_civ1_3d_xml '|qsub -p ' pvalue ' -q lam.q -pe lam_loose ' nb_processor ' -e ' par_civ1_3d_xml '.errors -o ' par_civ1_3d_xml '.log' ] 1579 eval ( ['!echo /CIVX/bin/MPI/lam-7.1.3_g95/bin/mpirun C ' Civ3D3CBin ' -p ' par_civ1_3d_xml '|qsub -p ' pvalue ' -q lam.q -pe lam_loose ' nb_processor ' -e ' par_civ1_3d_xml '.errors -o ' par_civ1_3d_xml '.log' ]) 1580 1581 end 1582 end 1583 1662 1584 set(handles.BATCH, 'Enable','On') 1663 1585 set(handles.BATCH,'BackgroundColor',[1 0 0]) 1664 %save interface state 1586 1587 %save GUI state 1665 1588 [Path,Name]=fileparts(filebase); 1666 1589 namefig=fullfile(Path,subdir_civ2,Name); -
trunk/src/plot_field.m
r71 r72 12 12 % dimension variables (case of matrices). 13 13 % 14 % function [PlotType,PlotParamOut,haxes]= plot_field(Data,haxes,PlotParam, KeepLim,PosColorbar)14 % function [PlotType,PlotParamOut,haxes]= plot_field(Data,haxes,PlotParam,htext,PosColorbar) 15 15 % 16 16 % OUPUT: … … 53 53 % 54 54 % PlotParam: parameters for plotting, as read on the uvmat interface (by function 'read_plot_param.m') 55 % .FixedLimits:=0 (default) adjust axes limit to the X,Y data, =1: preserves the previous axes limits 56 % .Auto_xy: =0 (default): kepp 1 to 1 aspect ratio for x and y scales, =1: automatic adjustment of the graph 55 57 % --scalars-- 56 58 % .Scalar.MaxA: upper bound (saturation color) for the scalar representation, max(field) by default … … 79 81 % .Vectors.MaxC = imposed maximum of the scalar field used for vector color; 80 82 % 81 % KeepLim:=0 (default) adjust axes limit to the X,Y data, =1: preserves the previous axes limits83 % 82 84 % PosColorbar: if not empty, display a colorbar for B&W images 83 85 % imposed position of the colorbar (ex [0.821 0.471 0.019 0.445]) … … 99 101 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 100 102 101 function [PlotType,PlotParamOut,haxes]= plot_field(Data,haxes,PlotParam,KeepLim,PosColorbar) 102 103 function [PlotType,PlotParamOut,haxes]= plot_field(Data,haxes,PlotParam,htext,PosColorbar) 104 % TODO: 105 % use htext: handles of the text edit box (uicontrol) 106 % introduce PlotParam.Hold: 'on' or 'off' (for curves) 107 103 108 %default output 104 109 if ~exist('PlotParam','var'),PlotParam=[];end; 105 if ~exist(' KeepLim','var'),KeepLim=0;end;110 if ~exist('htext','var'),htext=[];end; 106 111 if ~exist('PosColorbar','var'),PosColorbar=[];end; 107 112 PlotType='text'; %default … … 177 182 [Data.NbDim,imax]=max(NbDim); 178 183 end 179 if isequal(Data.NbDim,0) % TODO: chech whether this function is still used, replace by plot_profile ? 180 % if isfield(Data,'Style') & isequal(Data.Style,'points') 181 AxeData=plot_text(Data,haxes); 184 if isequal(Data.NbDim,0) 185 AxeData=plot_text(Data,htext); 182 186 PlotType='text'; 183 % else184 % [AxeData,haxes]=plot_hist(Data,haxes,PlotParam);185 % end186 187 elseif isequal(Data.NbDim,1) 187 188 [AxeData,haxes]=plot_profile(Data,CellVarIndex,VarType,haxes,PlotParam);% … … 198 199 return 199 200 end 200 [AxeData,haxes,PlotParamOut,PlotType]=plot_plane(Data,CellVarIndex(ind_select),VarType(ind_select),haxes,PlotParam, KeepLim,PosColorbar);201 [AxeData,haxes,PlotParamOut,PlotType]=plot_plane(Data,CellVarIndex(ind_select),VarType(ind_select),haxes,PlotParam,htext,PosColorbar); 201 202 if testzoomaxes 202 203 [AxeData,zoomaxes,PlotParamOut]=plot_plane(Data,CellVarIndex(ind_select),VarType(ind_select),zoomaxes,PlotParam,1,PosColorbar); … … 235 236 236 237 237 %---------------------------------------------------------- 238 %------------------------------------------------------------------- 239 function hdisplay=plot_text(FieldData,hdisplay_in) 240 %------------------------------------------------------------------- 241 if exist('hdisplay_in','var') & ishandle(hdisplay_in) & isequal(get(hdisplay_in,'Type'),'uicontrol') 242 hdisplay=hdisplay_in; 243 else 244 figure;%create new figure 245 hdisplay=uicontrol('Style','edit', 'Units','normalized','Position', [0 0 1 1],'Max',2,'FontName','monospaced'); 246 end 247 248 ff=fields(FieldData);%list of field names 249 vv=struct2cell(FieldData);%list of field values 250 251 for icell=1:length(vv) 252 Tabcell{icell,1}=ff{icell}; 253 ss=vv{icell}; 254 sizss=size(ss); 255 if isnumeric(ss) 256 if sizss(1)<=1 & length(ss)<5 257 displ{icell}=num2str(ss); 258 else 259 displ{icell}=[class(ss) ', size ' num2str(size(ss))]; 260 end 261 elseif ischar(ss) 262 displ{icell}=ss; 263 elseif iscell(ss) 264 sizcell=size(ss); 265 if sizcell(1)==1 & length(sizcell)==2 %line cell 266 ssline='{'''; 267 for icolumn=1:sizcell(2) 268 if isnumeric(ss{icolumn}) 269 if size(ss{icolumn},1)<=1 & length(ss{icolumn})<5 270 sscolumn=num2str(ss{icolumn});%line vector 271 else 272 sscolumn=[class(ss{icolumn}) ', size ' num2str(size(ss{icolumn}))]; 273 end 274 elseif ischar(ss{icolumn}) 275 sscolumn=ss{icolumn}; 276 else 277 sscolumn=class(ss{icolumn}); 278 end 279 if icolumn==1 280 ssline=[ssline sscolumn]; 281 else 282 ssline=[ssline ''',''' sscolumn]; 283 end 284 end 285 displ{icell}=[ssline '''}']; 286 else 287 displ{icell}=[class(ss) ', size ' num2str(sizcell)]; 288 end 289 else 290 displ{icell}=class(ss); 291 end 292 Tabcell{icell,2}=displ{icell}; 293 end 294 Tabchar=cell2tab(Tabcell,': '); 295 set(hdisplay,'String', Tabchar) 296 297 298 %------------------------------------------------------------------- 238 299 function [AxeData,haxes]=plot_profile(data,CellVarIndex,VarType,haxes,PlotParam) 239 %----------------------------------------------------------- 300 %------------------------------------------------------------------- 240 301 %axes(haxes) 241 302 hfig=get(haxes,'parent'); … … 247 308 set(haxes,'NextPlot',PlotParam.NextPlot) 248 309 end 249 % adjust the size of the plot to include the whole field, except if KeepLim=1310 % adjust the size of the plot to include the whole field, 250 311 if isfield(PlotParam,'FixedLimits') && isequal(PlotParam.FixedLimits,1) %adjust the graph limits* 251 312 set(haxes,'XLimMode', 'manual') … … 454 515 455 516 456 %--------------------------------------- 457 % plot_plane 458 %---------------------------------------- 459 function [AxeData,haxes,PlotParamOut,PlotType]=plot_plane(Data,CellVarIndex,VarTypeCell,haxes,PlotParam,KeepLim,PosColorbar) 517 %------------------------------------------------------------------- 518 function [AxeData,haxes,PlotParamOut,PlotType]=plot_plane(Data,CellVarIndex,VarTypeCell,haxes,PlotParam,htext,PosColorbar) 519 %------------------------------------------------------------------- 460 520 grid(haxes, 'off') 461 521 %default plotting parameters … … 854 914 vec_U=reshape(vec_U,1,numel(vec_U)); 855 915 vec_V=reshape(vec_V,1,numel(vec_V)); 856 MinMaxX=max(vec_X)-min(vec_X) ;857 MinMaxY=max(vec_Y)-min(vec_Y) ;916 MinMaxX=max(vec_X)-min(vec_X) 917 MinMaxY=max(vec_Y)-min(vec_Y) 858 918 AxeData.Mesh=sqrt((MinMaxX*MinMaxY)/length(vec_X)); 859 919 if ~isfield(PlotParam.Vectors,'AutoVec') || isequal(PlotParam.Vectors.AutoVec,0)|| ~isfield(PlotParam.Vectors,'VecScale')... … … 993 1053 end 994 1054 995 % adjust the size of the plot to include the whole field, except if KeepLim=1 996 if ~(exist('KeepLim','var') && isequal(KeepLim,1)) %adjust the graph limits* 1055 % adjust the size of the plot to include the whole field, except if PlotParam.FixedLimits=1 1056 if ~(isfield(PlotParam,'FixedLimits') && PlotParam.FixedLimits) 1057 %~(exist('KeepLim','var') && isequal(KeepLim,1)) %adjust the graph limits* 997 1058 test_lim=0; 998 1059 if test_vec … … 1028 1089 set(get(haxes,'XLabel'),'String',[XName x_units]); 1029 1090 set(get(haxes,'YLabel'),'String',[YName y_units]); 1030 %--------------------------------------------- 1031 % function for plotting vectors1032 % ------------------------------------------------1091 1092 %------------------------------------------------------------------- 1093 % --- function for plotting vectors 1033 1094 %INPUT: 1034 1095 % haxes: handles of the plotting axes … … 1038 1099 %col_vec: matlab vector setting the color number #i for each velocity vector 1039 1100 function quiresetn(haxes,x,y,u,v,scale,colorlist,col_vec) 1040 1101 %------------------------------------------------------------------- 1041 1102 %define arrows 1042 1103 theta=0.5 ;%angle arrow … … 1118 1179 end 1119 1180 1120 %--------------------------------------- 1121 %determine tick positions for colorbar 1122 %------------------------------------ 1181 %------------------------------------------------------------------- 1182 % ---- determine tick positions for colorbar 1123 1183 function YTick=colbartick(MinA,MaxA) 1184 %------------------------------------------------------------------- 1124 1185 %determine tick positions with "simple" values between MinA and MaxA 1125 1186 YTick=0;%default -
trunk/src/proj_field.m
r71 r72 950 950 % test for 3D fields 951 951 test3D=0; 952 if isfield(FieldData,' NbDim')953 test3D=isequal(FieldData. NbDim,3);952 if isfield(FieldData,'nb_dim') 953 test3D=isequal(FieldData.nb_dim,3) 954 954 end 955 955 test3C=test3D; %default 3 vel components … … 1046 1046 %case of input fields with unstructured coordinates 1047 1047 if testX 1048 XName=FieldData.ListVarName{ivar_X} ;1049 YName=FieldData.ListVarName{ivar_Y} ;1048 XName=FieldData.ListVarName{ivar_X} 1049 YName=FieldData.ListVarName{ivar_Y} 1050 1050 eval(['coord_x=FieldData.' XName ';']) 1051 1051 eval(['coord_y=FieldData.' YName ';']) 1052 1052 if length(ivar_Z)==1 1053 ZName=FieldData.ListVarName{ivar_ X};1053 ZName=FieldData.ListVarName{ivar_Z} 1054 1054 eval(['coord_z=FieldData.' ZName ';']) 1055 1055 end -
trunk/src/series/ima2vol.m
r41 r72 20 20 curdir=pwd; 21 21 cd(path); 22 mkdir([subdir_ima '_ ij']);22 mkdir([subdir_ima '_vol']); 23 23 cd(curdir); 24 basename_new=fullfile(path,[subdir_ima '_ ij'],namebase);24 basename_new=fullfile(path,[subdir_ima '_vol'],namebase); 25 25 26 26 % read imadoc … … 55 55 t=set(t,uid_value(1),'value',ImageName)%indicate name of the first image, with ;png extension 56 56 end 57 58 % %add information about image transform59 % [t,new_uid]=add(t,1,'element','ImageTransform');60 % [t,NameFunction_uid]=add(t,new_uid,'element','NameFunction');61 % [t]=add(t,NameFunction_uid,'chardata','sub_background');62 % [t,NbSlice_uid]=add(t,new_uid,'element','NbSlice');63 % [t]=add(t,new_uid,'chardata',num2str(nbslice_i));64 % [t,NbSlidingImages_uid]=add(t,new_uid,'element','NbSlidingImages');65 % [t]=add(t,NbSlidingImages_uid,'chardata',num2str(nbaver));66 % [t,LuminosityRank_uid]=add(t,new_uid,'element','RankBackground');67 % [t]=add(t,LuminosityRank_uid,'chardata',num2str(rank));% luminosity rank almong the nbaver sliding images68 57 save(t,[basename_new '.xml']) 69 58 end … … 83 72 if num_j==nbfield2 84 73 filename_new=name_generator(basename_new,num_i,1,'.vol','_i'); 85 imwrite(vol,filename_new,'png' )74 imwrite(vol,filename_new,'png','BitDepth',16)% WRITE IN 16 bits 86 75 vol=[]; 87 76 end … … 104 93 Mfiltre=Mfiltre/(sum(sum(Mfiltre))); 105 94 106 C=filter2( ones(windowsize)/windowsize^2,B);95 C=filter2(Mfiltre,B); 107 96 C(:,1:windowsize)=C(:,windowsize)*ones(1,windowsize); 108 97 C(:,end-windowsize+1:end)=C(:,end-windowsize+1)*ones(1,windowsize); … … 127 116 cmax=max(c_select); 128 117 C=(C-cmin)/(cmax-cmin)*256; 129 C=uint8(C);118 %C=uint8(C); -
trunk/src/set_object.m
r71 r72 100 100 if isfield(data,'Name') 101 101 set(handles.TITLE,'String',data.Name) 102 set(hObject,'name',data.Name) 102 103 end 103 104 if ~isfield(data,'NbDim')||~isequal(data.NbDim,3)%2D case … … 245 246 set(handles.PLOT,'enable','off') 246 247 end 247 248 huvmat=findobj(allchild(0),'tag','uvmat'); 249 UvData=get(huvmat,'UserData'); 250 pos_uvmat=get(huvmat,'Position'); 251 %position the set_object GUI with respect to uvmat 252 if isfield(UvData,'SetObjectOrigin') 253 pos_set_object(1:2)=UvData.SetObjectOrigin + pos_uvmat(1:2); 254 pos_set_object(3:4)=UvData.SetObjectSize .* pos_uvmat(3:4); 255 set(hObject,'Position',pos_set_object) 256 end 248 257 249 258 % --- Outputs from this function are returned to the command line. … … 745 754 testnew=0; 746 755 if strcmp(ListObject{IndexObj_1},ObjectName)% we are editing the object whose projection is viewed in the uvmat frame 747 ObjectData.HandlesDisplay=h andles.axes3;748 PlotHandles=get_plot_handles(h andles);756 ObjectData.HandlesDisplay=hhuvmat.axes3; 757 PlotHandles=get_plot_handles(hhuvmat); 749 758 IndexObj=IndexObj_1; 750 759 elseif strcmp(ListObject{IndexObj_2},ObjectName)% we are editing the object whose projection is viewed in view_field -
trunk/src/uvmat.m
r71 r72 1603 1603 1604 1604 while get(handles.speed,'Value')~=0 & isequal(get(handles.RunMovie,'BusyAction'),'queue') % enable STOP command 1605 runpm(hObject,eventdata,handles,increment) 1605 errormsg=runpm(hObject,eventdata,handles,increment); 1606 if ~isempty(errormsg) 1607 return 1608 end 1606 1609 pause(1.02-get(handles.speed,'Value'))% wait for next image 1607 1610 end … … 1622 1625 1623 1626 %------------------------------------------------------------------ 1624 function runpm(hObject,eventdata,handles,increment)1627 function errormsg=runpm(hObject,eventdata,handles,increment) 1625 1628 %------------------------------------------------------------------ 1626 1629 %check for mùovie pair status … … 2411 2414 %Zvar=DimVarIndex(DimIndex(1)); 2412 2415 %Zvar=DimVarIndex(1); 2413 Zvar=VarType{imax}.coord_3;2414 if Zvar~=0% z is a dimension variable2415 ZName=UvData.Field.ListVarName{ Zvar};2416 % Zvar=VarType{imax}.coord_3; 2417 if isfield(VarType{imax},'coord_3')&& ~isequal(VarType{imax}.coord_3,0) % z is a dimension variable 2418 ZName=UvData.Field.ListVarName{VarType{imax}.coord_3} 2416 2419 eval(['UvData.ZMax=max(UvData.Field.' ZName ');']) 2417 2420 eval(['UvData.ZMin=min(UvData.Field.' ZName ');']) … … 2486 2489 ZBounds(1)=UvData.ZMin; %minimum for the Z slider 2487 2490 ZBounds(2)=UvData.ZMax;%maximum for the Z slider 2491 UvData.Object{1}.Name='1-PLANE'; 2492 UvData.Object{1}.enable_plot=1; 2488 2493 set_object(UvData.Object{1},PlotHandles,ZBounds); 2489 2494 set(handles.list_object_1,'Value',1); … … 4759 4764 UvData.MouseAction='create_object'; 4760 4765 set(handles.uvmat,'UserData',UvData) 4766 set(handles.delete_object,'Visible','on') 4767 set(handles.uvmat_title,'Visible','on') 4768 set(handles.viw_field_title,'Visible','on') 4761 4769 4762 4770 %------------------------------------------------------------------------ … … 4803 4811 [hset_object,UvData.sethandles]=set_object(data,PlotHandles);% call the set_object interface 4804 4812 4805 pos_uvmat=get(handles.uvmat,'Position');4806 % position the set_object GUI with respect to uvmat4807 if isfield(UvData,'SetObjectOrigin')4808 pos_set_object(1:2)=UvData.SetObjectOrigin + pos_uvmat(1:2);4809 pos_set_object(3:4)=UvData.SetObjectSize .* pos_uvmat(3:4);4810 set(hset_object,'Position',pos_set_object)4811 end4813 % pos_uvmat=get(handles.uvmat,'Position'); 4814 % %position the set_object GUI with respect to uvmat 4815 % if isfield(UvData,'SetObjectOrigin') 4816 % pos_set_object(1:2)=UvData.SetObjectOrigin + pos_uvmat(1:2); 4817 % pos_set_object(3:4)=UvData.SetObjectSize .* pos_uvmat(3:4); 4818 % set(hset_object,'Position',pos_set_object) 4819 % end 4812 4820 4813 4821 UvData.MouseAction='create_object'; … … 4815 4823 set(handles.zoom,'Value',0) 4816 4824 zoom_Callback(handles.uvmat, [], handles) 4825 set(handles.delete_object,'Visible','on') 4826 set(handles.uvmat_title,'Visible','on') 4827 set(handles.viw_field_title,'Visible','on') 4817 4828 4818 4829 %------------------------------------------------------------------------ -
trunk/src/write_plot_param.m
r19 r72 90 90 set(handles.HideFalse,'Visible',state) 91 91 set(handles.HideWarning,'Visible',state) 92 set(handles.record,'Visible',state) 92 if isfield(handles,'record') 93 set(handles.record,'Visible',state) 94 end 93 95 set(handles.colcode1,'Visible',state) 94 96 set(handles.colcode2,'Visible',state)
Note: See TracChangeset
for help on using the changeset viewer.