|
Here's a simple GUI that demonstrates some more strange behavior:
f=figure('Menu','none');
um=uimenu('Parent',f,'Label','graph');
umz=uimenu('Parent',um,'Label','zoom','accelerator','z','Callback','zoom');
umr=uimenu('Parent',um,'Label','rotate','accelerator','r','Callback','rotate3d');
pan=uipanel('Parent',f,'Position',[.2 .2 .6 .6]);
ax=axes('Parent',pan);
surf(peaks);
1. Same zoom problem as before. If you turn on the zoom and start zooming in, the graph grows beyond the boundaries of the parent panel, rather than changing the limits of the axis as the documentation claims.
2. Toggling the zoom via the accelerator does not work the same as toggling the zoom via the menu. For example, start up the GUI, enable rotate (using the menu or accelerator), and rotate the graph. Then, if you go to the menu and enable zoom, the graph stays rotated. If you instead use the accelerator to enable zoom, the graph returns to its original orientation.
3. Run the GUI, enable zooming using the accelerator and zoom in a few times. Then double click to return to the original view. Then use the accelerator to toggle zoom mode on and off (without actually zooming in or out while in zoom mode). Rather than maintain the graph's current zoom level, toggling the zoom seems to go through several zoom levels. Again, this happens only when using the accelerator, not when using selecting the zoom option in the menu.
|