Changeset 428 for trunk/src/view_field.m


Ignore:
Timestamp:
May 19, 2012, 12:38:14 PM (12 years ago)
Author:
sommeria
Message:

bugs fixed. Introduction of transparency and axis aspect ratio in uvmat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r425 r428  
    308308
    309309%-------------------------------------------------------------------
    310 % --- Executes on button press in 'FixLimits'.
    311 %-------------------------------------------------------------------
    312 function CheckFixLimits_Callback(hObject, eventdata, handles)
    313 test=get(handles.CheckFixLimits,'Value');
    314 if test
    315     set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
    316 else
    317     set(handles.CheckFixLimits,'BackgroundColor',[0.7 0.7 0.7])
    318 end
    319 update_plot(handles)
    320 
    321 %-------------------------------------------------------------------
    322 % --- Executes on button press in FixEqual.
    323 function CheckFixEqual_Callback(hObject, eventdata, handles)
    324 test=get(handles.CheckFixEqual,'Value');
    325 if test
    326     set(handles.CheckFixEqual,'BackgroundColor',[1 1 0])
    327 else
    328     set(handles.CheckFixEqual,'BackgroundColor',[0.7 0.7 0.7])
    329 end
    330  update_plot(handles)
    331 
    332 %-------------------------------------------------------------------
    333 
    334 %-------------------------------------------------------------------
    335310% --- Executes on button press in 'zoom'.
    336311%-------------------------------------------------------------------
     
    343318    set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7])
    344319end
     320
     321%-------------------------------------------------------------------
     322% --- Executes on button press in 'FixLimits'.
     323%-------------------------------------------------------------------
     324function CheckFixLimits_Callback(hObject, eventdata, handles)
     325test=get(handles.CheckFixLimits,'Value');
     326if test
     327    set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
     328else
     329    set(handles.CheckFixLimits,'BackgroundColor',[0.7 0.7 0.7])
     330end
     331update_plot(handles)
     332 
     333 %-------------------------------------------------------------------
     334% --- Executes on button press in CheckFixAspectRatio.
     335function CheckFixAspectRatio_Callback(hObject, eventdata, handles)
     336%-------------------------------------------------------------------
     337if get(handles.CheckFixAspectRatio,'Value')
     338    set(handles.CheckFixAspectRatio,'BackgroundColor',[1 1 0])
     339    update_plot(handles);
     340else
     341    set(handles.CheckFixAspectRatio,'BackgroundColor',[0.7 0.7 0.7])
     342    update_plot(handles);
     343end
     344
     345%-------------------------------------------------------------------
     346function num_AspectRatio_Callback(hObject, eventdata, handles)
     347%-------------------------------------------------------------------
     348set(handles.CheckFixAspectRatio,'Value',1)% select the fixed aspect ratio button
     349set(handles.CheckFixAspectRatio,'BackgroundColor',[1 1 0])% mark in yellow
     350update_plot(handles);
     351
     352%-------------------------------------------------------------------
    345353
    346354% %-------------------------------------------------------------------
     
    746754% --- Executes on selection change in ColorCode.
    747755function ColorCode_Callback(hObject, eventdata, handles)
    748 % hObject    handle to ColorCode (see GCBO)
    749 % eventdata  reserved - to be defined in a future version of MATLAB
    750 % handles    structure with handles and user data (see GUIDATA)
    751 
    752 % Hints: contents = cellstr(get(hObject,'String')) returns ColorCode contents as cell array
    753 %        contents{get(hObject,'Value')} returns selected item from ColorCode
    754756
    755757
    756758% --- Executes on selection change in ColorScalar.
    757759function ColorScalar_Callback(hObject, eventdata, handles)
    758 % hObject    handle to ColorScalar (see GCBO)
    759 % eventdata  reserved - to be defined in a future version of MATLAB
    760 % handles    structure with handles and user data (see GUIDATA)
    761 
    762 % Hints: contents = cellstr(get(hObject,'String')) returns ColorScalar contents as cell array
    763 %        contents{get(hObject,'Value')} returns selected item from ColorScalar
    764 
    765760
    766761
    767762function num_ColCode2_Callback(hObject, eventdata, handles)
    768 % hObject    handle to num_colcode2 (see GCBO)
    769 % eventdata  reserved - to be defined in a future version of MATLAB
    770 % handles    structure with handles and user data (see GUIDATA)
    771 
    772 % Hints: get(hObject,'String') returns contents of num_colcode2 as text
    773 %        str2double(get(hObject,'String')) returns contents of num_colcode2 as a double
     763
     764
     765
Note: See TracChangeset for help on using the changeset viewer.