S = set_hittest(hittest)
Matlab-version-independend way to disable hittest.
hittest | string | 'on' or 'off' (defaults to 'off') |
S | struct | with fields: hittest and pickableparts. |
aux=struct2namevalue(set_hittest('off')); linprops=struct('linew',4,'color','r','parent',hax,aux{:}); line(x,y,linprops{:})