Hi all,
What I would like to accomplish is: 1. Have one figure with two axes ax1 and ax2. 2. In ax1 the 3D rotation should be active. 3. In ax2 an image will be shown, and ButtonDownFCN should be called when clicked.
Example:
%%%%%%%%%%%%%%%%%%%%
ax1 = subplot(1,2,1);surf(peaks);h = rotate3d;h.Enable = 'on';ax2 = subplot(1,2,2);I = imshow(rand(200,200),[]);setAllowAxesRotate(h,ax2,false); set(I,'ButtonDownFCN','disp(''clicked'')')
%%%%%%%%%%%%%%%%%%%%%%%
However, this does not work. Is it possible to somehow call ButtonDownFCN at a click in the axes that does not have 3D-rotation on?
Best, Patrik
Best Answer