简体   繁体   中英

Matlab figure can no longer pan or zoom after supertitle added

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 pan 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.

尝试以编程方式平移和缩放,而不是使用GUI控件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM