rotate3d and ButtonDownFCN simultaneously active for two separate axes
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!