Change angle [syntax] function job_plot_cmap_change_angle(inst_id,str) [history] 2008-12-16 Taku Yoshioka Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function job_plot_cmap_change_angle(inst_id,str) 0002 % Change angle 0003 % 0004 % [syntax] 0005 % function job_plot_cmap_change_angle(inst_id,str) 0006 % 0007 % [history] 0008 % 2008-12-16 Taku Yoshioka 0009 % 0010 % Copyright (C) 2011, ATR All Rights Reserved. 0011 % License : New BSD License(see VBMEG_LICENSE.txt) 0012 0013 global vbmeg_inst; 0014 0015 % 0016 % Global variables 0017 % 0018 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0019 h_fig = vbmeg_inst.plotcmap{inst_id}.h_fig; 0020 h_space = vbmeg_inst.plotcmap{inst_id}.h_space; 0021 0022 % 0023 % Change angle 0024 % 0025 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0026 set(h_fig,'CurrentAxes',h_space); 0027 0028 switch str 0029 case 'left', 0030 view([-90 0]); 0031 case 'right', 0032 view([90 0]); 0033 case 'top', 0034 view([0 90]); 0035 case 'bottom', 0036 view([-180 -90]); 0037 case 'front', 0038 view([180 0]); 0039 case 'back', 0040 view([0 0]); 0041 end