Changeset 866 for trunk/src/uvmat.m


Ignore:
Timestamp:
Feb 8, 2015, 7:26:02 AM (9 years ago)
Author:
sommeria
Message:

stereo_civ_updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r864 r866  
    32833283            if ischar(list_fields),list_fields={list_fields};end
    32843284            FieldName_1= list_fields{get(handles.FieldName_1,'Value')}; % selected field
    3285             if ~strcmp(FieldName,'get_field...')
     3285            if ~strcmp(FieldName_1,'get_field...')
    32863286                if get(handles.FixVelType,'Value')
    32873287                    VelTypeList=get(handles.VelType_1,'String');
     
    32893289                end
    32903290            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')
    32923295                list_code=get(handles.ColorCode,'String');% list menu fields
    32933296                index_code=get(handles.ColorCode,'Value');% selected string index
     
    37593762            else
    37603763                [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
    37613776                if imap==1
    37623777                    errormsg=fill_GUI(PlotParamOut,handles.uvmat);
     
    44594474            REFRESH_Callback(hObject, eventdata, handles)
    44604475        end
    4461          
    4462 %         set_veltype_display(0) % no veltype display
    4463 %         hget_field=findobj(allchild(0),'name','get_field_1');
    4464 %         if ~isempty(hget_field)
    4465 %             delete(hget_field)
    4466 %         end
    4467 %         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_new
    4473 %             UvData.FileType{2}=UvData.FileType{1};
    4474 %             set(handles.FileIndex_1,'String',get(handles.FileIndex,'String'))
    4475 %               set(handles.uvmat,'UserData',UvData)
    4476 %         end
    44774476    case 'image'
    44784477        %% look for image corresponding to civ data
Note: See TracChangeset for help on using the changeset viewer.