开发者

Matlab figure can no longer pan or zoom after supertitle added

开发者 https://www.devze.com 2023-02-24 22:59 出处:网络
I\'m making some figures in Matlab, many of which I\'d like to print at different zoom levels. The figure is made using subplot. Each subplot has its own title, but I also want a larger title for the

I'm making some figures in Matlab, many of which I'd like to print at different zoom levels. The figure is made using subplot. Each subplot has its own title, but I also want a larger title for the entire figure.

The problem is this: once I add a supertitle, the figure no longer pans or zooms. If I remove the supertitle with supertitle(), then I can once again pan and zoom. The brute force solution to this problem is to continue toggling the supertitle on and off while I pan and zoom in between, but this is both time consuming and irritating.

Does anyone know a way to restore the pa开发者_高级运维n and zoom functions while keeping the supertitle of a figure?


AFAIK, supertitle() is not an in-built function in MATLAB and is not shipped with the common toolboxes from Mathworks. This is probably a custom function file that extends MATLAB's plotting capabilities.

That said, the error is most likely due to the function not returning focus to the original plot which makes zoom & pan to not work as desired. The exact reason can only be figured out by looking at the original code.


Try panning and zooming programmatically, rather than using the GUI controls.

0

精彩评论

暂无评论...
验证码 换一张
取 消