Changeset 428 for trunk/src/view_field.m
- Timestamp:
- May 19, 2012, 12:38:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/view_field.m
r425 r428 308 308 309 309 %------------------------------------------------------------------- 310 % --- Executes on button press in 'FixLimits'.311 %-------------------------------------------------------------------312 function CheckFixLimits_Callback(hObject, eventdata, handles)313 test=get(handles.CheckFixLimits,'Value');314 if test315 set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])316 else317 set(handles.CheckFixLimits,'BackgroundColor',[0.7 0.7 0.7])318 end319 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 test326 set(handles.CheckFixEqual,'BackgroundColor',[1 1 0])327 else328 set(handles.CheckFixEqual,'BackgroundColor',[0.7 0.7 0.7])329 end330 update_plot(handles)331 332 %-------------------------------------------------------------------333 334 %-------------------------------------------------------------------335 310 % --- Executes on button press in 'zoom'. 336 311 %------------------------------------------------------------------- … … 343 318 set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7]) 344 319 end 320 321 %------------------------------------------------------------------- 322 % --- Executes on button press in 'FixLimits'. 323 %------------------------------------------------------------------- 324 function CheckFixLimits_Callback(hObject, eventdata, handles) 325 test=get(handles.CheckFixLimits,'Value'); 326 if test 327 set(handles.CheckFixLimits,'BackgroundColor',[1 1 0]) 328 else 329 set(handles.CheckFixLimits,'BackgroundColor',[0.7 0.7 0.7]) 330 end 331 update_plot(handles) 332 333 %------------------------------------------------------------------- 334 % --- Executes on button press in CheckFixAspectRatio. 335 function CheckFixAspectRatio_Callback(hObject, eventdata, handles) 336 %------------------------------------------------------------------- 337 if get(handles.CheckFixAspectRatio,'Value') 338 set(handles.CheckFixAspectRatio,'BackgroundColor',[1 1 0]) 339 update_plot(handles); 340 else 341 set(handles.CheckFixAspectRatio,'BackgroundColor',[0.7 0.7 0.7]) 342 update_plot(handles); 343 end 344 345 %------------------------------------------------------------------- 346 function num_AspectRatio_Callback(hObject, eventdata, handles) 347 %------------------------------------------------------------------- 348 set(handles.CheckFixAspectRatio,'Value',1)% select the fixed aspect ratio button 349 set(handles.CheckFixAspectRatio,'BackgroundColor',[1 1 0])% mark in yellow 350 update_plot(handles); 351 352 %------------------------------------------------------------------- 345 353 346 354 % %------------------------------------------------------------------- … … 746 754 % --- Executes on selection change in ColorCode. 747 755 function ColorCode_Callback(hObject, eventdata, handles) 748 % hObject handle to ColorCode (see GCBO)749 % eventdata reserved - to be defined in a future version of MATLAB750 % handles structure with handles and user data (see GUIDATA)751 752 % Hints: contents = cellstr(get(hObject,'String')) returns ColorCode contents as cell array753 % contents{get(hObject,'Value')} returns selected item from ColorCode754 756 755 757 756 758 % --- Executes on selection change in ColorScalar. 757 759 function ColorScalar_Callback(hObject, eventdata, handles) 758 % hObject handle to ColorScalar (see GCBO)759 % eventdata reserved - to be defined in a future version of MATLAB760 % handles structure with handles and user data (see GUIDATA)761 762 % Hints: contents = cellstr(get(hObject,'String')) returns ColorScalar contents as cell array763 % contents{get(hObject,'Value')} returns selected item from ColorScalar764 765 760 766 761 767 762 function 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.