Changeset 546 for trunk/src/uvmat.m


Ignore:
Timestamp:
Sep 17, 2012, 10:47:38 PM (8 years ago)
Author:
sommeria
Message:

bugs corrected for tps projection on a grid + pb of colorbar display solved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r542 r546  
    178178set(hObject,'Units','Normalized')
    179179movegui(hObject,'center')
     180%UvData.OpenParam.PosColorbar=[0.8450    0.0900    0.0190    0.3600];
    180181UvData.OpenParam.PosColorbar=[0.805 0.022 0.019 0.445];
    181182UvData.OpenParam.PosSetObject=[-0.05 -0.03 0.3 0.7]; %position for set_object
     
    24392440    end
    24402441    UvData.Field.Mesh=min(Mesh);
    2441     UvData.Field.XMax=max(CoordMax(ind,1));
    2442     UvData.Field.XMin=min(CoordMin(ind,1));
    2443     UvData.Field.YMax=max(CoordMax(ind,2));
    2444     UvData.Field.YMin=max(CoordMin(ind,2));
     2442    UvData.Field.XMax=max(CoordMax(ind,end));
     2443    UvData.Field.XMin=min(CoordMin(ind,end));
     2444    UvData.Field.YMax=max(CoordMax(ind,end-1));
     2445    UvData.Field.YMin=max(CoordMin(ind,end-1));
    24452446    if NbDim==3
    2446         UvData.Field.ZMax=max(CoordMax(ind,3));
    2447         UvData.Field.ZMin=max(CoordMin(ind,3));
     2447        UvData.Field.ZMax=max(CoordMax(ind,1));
     2448        UvData.Field.ZMin=max(CoordMin(ind,1));
    24482449    end
    24492450    % adjust the mesh to a value 1, 2 , 5 *10^n
     
    30613062end
    30623063if isequal(field,'image')||isequal(field_1,'image')
    3063     set(handles.TitleNpx,'Visible','on')% visible npx,pxcm... buttons
    3064     set(handles.TitleNpy,'Visible','on')
     3064    set(handles.TitleNpxy,'Visible','on')% visible npx,pxcm... buttons
    30653065    set(handles.num_Npx,'Visible','on')
    30663066    set(handles.num_Npy,'Visible','on')
    30673067else
    3068     set(handles.TitleNpx,'Visible','off')% visible npx,pxcm... buttons
    3069     set(handles.TitleNpy,'Visible','off')
     3068    set(handles.TitleNpxy,'Visible','off')% visible npx,pxcm... buttons
    30703069    set(handles.num_Npx,'Visible','off')
    30713070    set(handles.num_Npy,'Visible','off')
     
    31483147            set(handles.SubField,'Value',0)
    31493148        else %valid browser input:  display the selected image
    3150             set(handles.TitleNpx,'Visible','on')% visible npx,pxcm... buttons
    3151             set(handles.TitleNpy,'Visible','on')
     3149            set(handles.TitleNpxy,'Visible','on')% visible npx,pxcm... buttons
    31523150            set(handles.num_Npx,'Visible','on')
    31533151            set(handles.num_Npy,'Visible','on')
     
    31613159        end
    31623160        if ~isequal(field,'image')
    3163             set(handles.TitleNpx,'Visible','off')% visible npx,pxcm... buttons
    3164             set(handles.TitleNpy,'Visible','off')
     3161            set(handles.TitleNpxy,'Visible','off')% visible npx,pxcm... buttons
    31653162            set(handles.num_Npx,'Visible','off')
    31663163            set(handles.num_Npy,'Visible','off')
     
    48394836% --- Executes on selection change in Coord_x.
    48404837function Coord_x_Callback(hObject, eventdata, handles)
     4838
     4839
     4840% --- Executes on button press in CheckColorBar.
     4841function CheckColorBar_Callback(hObject, eventdata, handles)
     4842% hObject    handle to CheckColorBar (see GCBO)
     4843% eventdata  reserved - to be defined in a future version of MATLAB
     4844% handles    structure with handles and user data (see GUIDATA)
     4845
     4846% Hint: get(hObject,'Value') returns toggle state of CheckColorBar
Note: See TracChangeset for help on using the changeset viewer.