Changeset 534
- Timestamp:
- Aug 31, 2012, 4:20:32 PM (12 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r521 r534 181 181 182 182 %% delete the current zoom rectangle 183 if isfield(AxeData,'CurrentRectZoom') && ishandle(AxeData.CurrentRectZoom)183 if isfield(AxeData,'CurrentRectZoom') && ~isempty(AxeData.CurrentRectZoom) && ishandle(AxeData.CurrentRectZoom) 184 184 delete(AxeData.CurrentRectZoom) 185 185 AxeData.CurrentRectZoom=[]; … … 345 345 ObjectName=ObjectNameNew; 346 346 set(sethandles.Name,'String',ObjectName)% display the default name in set_object 347 if isempty(ListObject) 348 ListObject={ObjectName}; 349 else 347 350 ListObject{end}=ObjectName; 351 end 348 352 set(hhuvmat.ListObject,'String',ListObject);%complement the object list 349 353 set(hhuvmat.ListObject_1,'String',ListObject);%complement the object list -
trunk/src/nc2struct.m
r527 r534 15 15 % ListDimName=list of dimension (added information, not requested for field description) 16 16 % DimValue= vlalues of dimensions (added information, not requested for field description) 17 % .Txt: error message 17 18 % var_detect: vector with same length as the cell array ListVarName, = 1 for each detected variable and 0 else. 18 19 % var_detect=[] in the absence of input cell array -
trunk/src/plot_object.m
r432 r534 41 41 hh=[];%default output 42 42 % object representation is canceled if the field is not projected on a plane or is the same as the represented object 43 if ~isfield(ObjectData,'Type')|| isequal(ProjObject,ObjectData)|| ~strcmp(ProjObject.Type,'plane')43 if ~isfield(ObjectData,'Type')|| isequal(ProjObject,ObjectData)||~isfield(ProjObject,'Type')|| ~strcmp(ProjObject.Type,'plane') 44 44 if ~isempty(hplot) && ishandle(hplot) && ~strcmp(get(hplot,'Type'),'axes') 45 45 ObjectPlotData=get(hplot,'UserData'); -
trunk/src/proj_field.m
r533 r534 1251 1251 return 1252 1252 else 1253 if numel( find(VarType.coord))==2% the third matrix dimension does not correspond to a space coordinate1253 if numel(CellInfo{icell}.CoordIndex)==2% the third matrix dimension does not correspond to a space coordinate 1254 1254 nbcolor=DimValue(3); 1255 1255 DimValue(3)=[]; %number of 'color' components updated -
trunk/src/read_field.m
r527 r534 85 85 end 86 86 [Field,var_detect,ichoice]=nc2struct(FileName,[ParamIn.Coord_x ParamIn.Coord_y ListVar]); 87 if isfield(Field,'Txt') 88 errormsg=Field.Txt; 89 return 90 end 87 91 for ivar=1:numel(ListVar) 88 92 Field.VarAttribute{ivar+2}.Role=Role{ivar}; -
trunk/src/uvmat.m
r530 r534 4459 4459 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 4460 4460 ListObject=get(handles.ListObject,'String'); 4461 if isempty(ListObject) 4462 ListObject={''}; 4463 end 4461 4464 if ~strcmp(ListObject{end},'') 4462 4465 ListObject=[ListObject;{''}]; %append a blank to the list (if nort already done) to indicate the creation of a new object
Note: See TracChangeset
for help on using the changeset viewer.