HEADPLOT | Plot a spherically-splined EEG field map on a semi-realistic 3-D head model. Rotate head using left mouse button. |
Example: | >> headplot example - show an example spherical 'eloc_angles' file >> headplot cartesian - show an example cartesian 'eloc_angles' file |
Usage (do once): | >> headplot('setup',['eloc_angles'],['splinefile'],['comment'],['type']) |
Inputs: | |
'eloc_angles' |
file of electrode locations in spherical (or cartesian) coords. cf. functions: cart2topo and topo2sph |
'splinefile' |
name of spline file to save splining info into |
'comment' |
optional string vector containing info for spline file |
'type' |
type of electrode location file ('cartesian' or default 'spherical') |
General usage: | >> headplot(values,'spline_file','Param','Value',...) |
Inputs: | |
values |
vector containing value at each electrode position |
'spline_file' |
spline filename computed and saved by running 'setup' |
Optional Parameters: | |
'title' |
Plot title {default none} |
'electrodes' |
'on'|'off' -> show electrode positions {default 'on'} |
'labels' |
2 -> plot stored electrode labels; 1 -> plot channel numbers; 0 -> no labels {default} |
'cbar' |
0 -> Plot colorbar {default: no colorbar} h -> Colorbar axis handle (e.g., choose location) |
'view' |
Camera viewpoint in deg. [azimuth elevation] 'back'|'b'=[ 0 30]; 'front'|'f'=[180 30] 'left'|'l'=[-90 30]; 'right'|'r'=[ 90 30]; 'frontleft'|'bl','backright'|'br', etc., 'top'=[0 90] {default [143 18]} |
'maplimits' |
'absmax' -> make limits +/- the absolute-max 'maxmin' -> scale to data range [min,max] -> user-definined values |
{default |
'absmax'; red +, blue -, green 0} |
'lights' |
(3,N) matrix whose rows give x,y,z pos. of N lights {default: 4 lights at corners} |
'lighting' |
'off' = show wire frame {default 'on'} |
'colormap' |
3-column colormap matrix {default jet(64)} |
'verbose' |
'off' -> no msgs, no rotate3d {default 'on'} |
Authors: | Colin Humphries & Scott Makeig, SCCN/INC/UCSD, La Jolla, 1998 |