Home > functions > job > job_plot_currentmap_dir > job_plot_cmap_change_angle.m

job_plot_cmap_change_angle

PURPOSE ^

Change angle

SYNOPSIS ^

function job_plot_cmap_change_angle(inst_id,str)

DESCRIPTION ^

 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)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005