Change zoom mode --- Syntax function job_plot_cmap_push_zoom_button(inst_id) --- History 2008-09-29 Taku Yoshioka [Note] This function is not used on MATALB 2008b or later because zoom function is always on and controlled by mouse wheel. Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function job_plot_cmap_push_zoom_button(inst_id) 0002 % Change zoom mode 0003 % 0004 % --- Syntax 0005 % function job_plot_cmap_push_zoom_button(inst_id) 0006 % 0007 % --- History 0008 % 2008-09-29 Taku Yoshioka 0009 % 0010 % [Note] 0011 % This function is not used on MATALB 2008b or later 0012 % because zoom function is always on and controlled by mouse wheel. 0013 % 0014 % Copyright (C) 2011, ATR All Rights Reserved. 0015 % License : New BSD License(see VBMEG_LICENSE.txt) 0016 0017 global vbmeg_inst; 0018 if isempty(vbmeg_inst.plotcmap{inst_id}.V), return; end 0019 0020 % 0021 % Global variables 0022 % 0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0024 h_fig = vbmeg_inst.plotcmap{inst_id}.h_fig; 0025 h_space = vbmeg_inst.plotcmap{inst_id}.h_space; 0026 h_time = vbmeg_inst.plotcmap{inst_id}.h_time; 0027 h_zoom = vbmeg_inst.plotcmap{inst_id}.pb3; 0028 0029 % 0030 % Change rotation mode and set callback function 0031 % 0032 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0033 rot_flag = get(h_zoom, 'Value'); 0034 if rot_flag, 0035 on_off = 'on'; 0036 else 0037 on_off = 'off'; 0038 end 0039 zoom(h_fig, on_off);