添加字幕后,Matlab 图形无法再平移或缩放
我正在 Matlab 中制作一些图形,其中许多我想以不同的缩放级别打印。该图是使用子图绘制的。每个子图都有自己的标题,但我也希望整个图有一个更大的标题。
问题是这样的:一旦我添加了字幕,图形就不再平移或缩放。如果我使用 supertitle()
删除超级标题,那么我可以再次平移和缩放。解决这个问题的强力解决方案是在我平移和放大之间继续打开和关闭字幕,但这既耗时又令人恼火。
有谁知道如何在保留图形字幕的同时恢复平移和缩放功能?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
AFAIK,
supertitle()
不是 MATLAB 中的内置函数,也不随 Mathworks 的常用工具箱一起提供。这可能是一个扩展 MATLAB 绘图功能的自定义函数文件。也就是说,该错误很可能是由于该函数未将焦点返回到原始绘图而导致缩放和缩放。平移无法按预期工作。具体原因只能通过查看原始代码才能弄清楚。
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 控件。
Try panning and zooming programmatically, rather than using the GUI controls.