Change color scale --- History 2009-05-22 Taku Yoshioka Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function job_edit_act_change_color_scale(inst_id) 0002 % Change color scale 0003 % 0004 % --- History 0005 % 2009-05-22 Taku Yoshioka 0006 % 0007 % Copyright (C) 2011, ATR All Rights Reserved. 0008 % License : New BSD License(see VBMEG_LICENSE.txt) 0009 0010 global vbmeg_inst; 0011 0012 % Global variables 0013 h_space = vbmeg_inst.editact{inst_id}.h_space; 0014 h_cbar = vbmeg_inst.editact{inst_id}.h_cbar; 0015 ed6 = vbmeg_inst.editact{inst_id}.ed6; 0016 0017 % Update color scale 0018 v = str2num(get(ed6,'String')); 0019 if size(v)~=2, return; end; 0020 if v(1)>=v(2), return; end; 0021 caxis(h_space,v); 0022 reset(h_cbar); 0023 colorbar(h_cbar);