- Timestamp:
- Apr 9, 2014, 9:37:44 AM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r729 r735 811 811 MinA=double(PlotParam.Scalar.MinA); % min value set as input 812 812 else 813 MinA=double( nanmin(nanmin(A))); % min value set as min of non NaN scalar values813 MinA=double(min(min(A))); % min value set as min of non NaN scalar values 814 814 end 815 815 … … 824 824 MaxA=double(PlotParam.Scalar.MaxA); % max value set as input 825 825 else 826 MaxA=double( nanmax(nanmax(A))); % max value set as min of non NaN scalar values826 MaxA=double(max(max(A))); % max value set as min of non NaN scalar values 827 827 end 828 828 -
trunk/src/proj_field.m
r690 r735 147 147 end 148 148 [ProjData,errormsg]=proj_heading(FieldData,ObjectData); 149 if ~isempty(errormsg) 150 return 151 end 149 152 ProjData.NbDim=0; 150 153 [CellInfo,NbDimArray,errormsg]=find_field_cells(FieldData); … … 305 308 %------------------------------------------------------------------- 306 309 [ProjData,errormsg]=proj_heading(FieldData,ObjectData); 307 310 if ~isempty(errormsg) 311 return 312 end 308 313 %objectfield=fieldnames(ObjectData); 309 314 widthx=0; … … 1608 1613 %% initiate Matlab structure for physical field 1609 1614 [ProjData,errormsg]=proj_heading(FieldData,ObjectData); 1615 if ~isempty(errormsg) 1616 return 1617 end 1618 1610 1619 ProjData.NbDim=3; 1611 1620 ProjData.ListVarName={}; -
trunk/src/series.m
r733 r735 1788 1788 for iprocess=1:NbProcess 1789 1789 system([batch_file_list{iprocess} ' &'])% directly execute the command file for each process 1790 msgbox_uvmat('CONFIRMATION',[ActionName 'launched in background: press STATUS to see results']) 1790 1791 end 1791 1792 case 'cluster_oar' % option 'oar-parexec' used … … 1827 1828 fclose(fid); 1828 1829 fprintf(oar_command);% display in command line 1829 %system(['chmod +x ' oar_command]);% set the file to executable1830 system(oar_command);1830 system(oar_command); 1831 msgbox_uvmat('CONFIRMATION',[ActionName ' launched in cluster: press STATUS to see results']) 1831 1832 end 1832 1833 … … 2426 2427 end 2427 2428 hset_object=set_object(data);% call the set_object interface 2429 set(hset_object,'Name','set_object_series')% name to distinguish from set_object used with uvmat 2428 2430 end 2429 2431 ProjObject=read_GUI(hset_object); … … 2490 2492 set(handles.ViewObject,'Visible','off') 2491 2493 set(handles.EditObject,'Visible','off') 2492 hset_object=findobj(allchild(0),' Tag','set_object');2494 hset_object=findobj(allchild(0),'name','set_object_series'); 2493 2495 if ~isempty(hset_object) 2494 2496 delete(hset_object) -
trunk/src/uvmat.m
r729 r735 338 338 end 339 339 % desable set_object editing action if detected 340 hh=findobj(allchild(0),' tag','set_object');340 hh=findobj(allchild(0),'name','set_object'); 341 341 if ~isempty(hh) 342 342 hhh=findobj(hh,'tag','PLOT'); … … 1376 1376 if isempty(MaskFile) 1377 1377 Mask.File=''; 1378 elseif ischar(MaskFile) 1379 Mask.File=MaskFile; 1378 1380 else 1379 1381 Mask.File=MaskFile{1}; … … 2534 2536 UvData.ProjObject{1}.enable_plot=1; 2535 2537 set_object(UvData.ProjObject{1},handles,ZBounds); 2538 set(hset_object,'name','set_object');% rename if set_object already used with series 2536 2539 set(handles.ListObject,'Value',1); 2537 2540 set(handles.ListObject,'String',{'1-PLANE'}); … … 3580 3583 [hset_object,UvData.sethandles]=set_object(data,PlotHandles);% call the set_object interface with action on haxes, 3581 3584 % associate the set_object interface handle to the plotting axes 3582 %set(hset_object,'Position',get(handles.uvmat,'Position')+UvData.OpenParam.PosSetObject)3585 set(hset_object,'name','set_object') 3583 3586 UvData.MouseAction='create_object'; 3584 3587 else … … 4245 4248 end 4246 4249 ObjectData.Name=list_str{get(handles.ListObject_1,'Value')}; 4247 set_object(ObjectData,[],ZBounds); 4250 hset_object=set_object(ObjectData,[],ZBounds); 4251 set(hset_object,'name','set_object') 4248 4252 set(handles.CheckViewObject,'Value',1)% show that the selected object in ListObject_1 is currently visualised 4249 4253 end … … 4272 4276 %% show object features if view_object isselected 4273 4277 if get(handles.CheckViewObject,'value') 4274 set_object(ObjectData,[],ZBounds); 4275 end 4276 4277 %% The object is displayed in set_object if this GUI is already opened 4278 % 4279 % hset_object=findobj(allchild(0),'tag','set_object'); 4280 % if ~isempty(hset_object) 4281 % 4282 % ObjectData.Name=list_str{IndexObj}; 4283 % set_object(ObjectData,[],ZBounds); 4284 % set(handles.CheckViewField,'Value',1)% show that the selected object in ListObject is currently visualised 4285 % end 4278 hset_object=set_object(ObjectData,[],ZBounds); 4279 set(hset_object,'name','set_object') 4280 end 4286 4281 4287 4282 %% desactivate the edit object mode for security 4288 4283 set(handles.CheckEditObject,'Value',0) 4289 4290 % set(handles.CheckEditObject,'BackgroundColor',[0.7,0.7,0.7])4291 4284 4292 4285 %% update the plot on view_field if view_field is already openened … … 4423 4416 end 4424 4417 hset_object=set_object(data,[],ZBounds); 4418 set(hset_object,'name','set_object') 4425 4419 hhset_object=guidata(hset_object); 4426 4420 if get(handles.CheckEditObject,'Value')% edit mode
Note: See TracChangeset
for help on using the changeset viewer.