% Set crosshair pointer over current axes; arrow pointer over the rest of figure
% Author: Igor Kagan					 
% kigor@tx.technion.ac.il
% http://igoresha.virtualave.net
% Last modified 21.08.00

set(gcf,'Units','Normalized','WindowButtonMotionFcn',['pos=get(gcf,''CurrentPoint''); axpos = get(gca,''Position'');',...
	'if (pos(1) > axpos(1) & pos(1) < axpos(3)+axpos(1) & pos(2) > axpos(2) & pos(2) < axpos(4)+axpos(2))',...
	'set(gcf,''Pointer'',''Crosshair''); else set(gcf,''Pointer'',''Arrow''); end']);



