Changeset 866 for trunk/src/uvmat.m
- Timestamp:
- Feb 8, 2015, 7:26:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r864 r866 3283 3283 if ischar(list_fields),list_fields={list_fields};end 3284 3284 FieldName_1= list_fields{get(handles.FieldName_1,'Value')}; % selected field 3285 if ~strcmp(FieldName ,'get_field...')3285 if ~strcmp(FieldName_1,'get_field...') 3286 3286 if get(handles.FixVelType,'Value') 3287 3287 VelTypeList=get(handles.VelType_1,'String'); … … 3289 3289 end 3290 3290 end 3291 if strcmp(FieldName_1,'velocity')&& strcmp(get(handles.ColorCode,'Visible'),'on') 3291 if isempty(FieldName_1) 3292 FieldName_1=FieldName;% if blank reproduce the field name of the first field 3293 end 3294 if ~isempty(regexp(FieldName_1,'^vel'))&& strcmp(get(handles.ColorCode,'Visible'),'on') 3292 3295 list_code=get(handles.ColorCode,'String');% list menu fields 3293 3296 index_code=get(handles.ColorCode,'Value');% selected string index … … 3759 3762 else 3760 3763 [PlotType,PlotParamOut]=plot_field(ObjectData,haxes(imap),PlotParam{imap}); 3764 if ~isempty(regexp(PlotType,'^error')) 3765 if ~isempty(regexp(PlotType,'attempt to plot two vector fields')) 3766 set(handles.CheckEditObject,'Value',1) 3767 CheckEditObject_Callback([], [], handles) 3768 hset_object=findobj(allchild(0),'Tag','set_object');%find the GUI set_object 3769 hhset_object=guidata(hset_object);% 3770 set(hhset_object.ProjMode,'Value',2); 3771 set_object('ProjMode_Callback',hset_object,[],hhset_object); 3772 end 3773 % errormsg=PlotType; 3774 return 3775 end 3761 3776 if imap==1 3762 3777 errormsg=fill_GUI(PlotParamOut,handles.uvmat); … … 4459 4474 REFRESH_Callback(hObject, eventdata, handles) 4460 4475 end 4461 4462 % set_veltype_display(0) % no veltype display4463 % hget_field=findobj(allchild(0),'name','get_field_1');4464 % if ~isempty(hget_field)4465 % delete(hget_field)4466 % end4467 % hget_field=get_field(FileName_1);4468 % set(hget_field,'name','get_field_1')4469 % hhget_field=guidata(hget_field);4470 % set(hhget_field.list_fig,'Value',1)4471 % set(hhget_field.list_fig,'String',{'uvmat'})4472 % if check_new4473 % UvData.FileType{2}=UvData.FileType{1};4474 % set(handles.FileIndex_1,'String',get(handles.FileIndex,'String'))4475 % set(handles.uvmat,'UserData',UvData)4476 % end4477 4476 case 'image' 4478 4477 %% look for image corresponding to civ data
Note: See TracChangeset
for help on using the changeset viewer.