Let me work, figure!

版本 1.0.0.0 (1.1 KB) 作者: Rafael Oliveira
Fig replaces the built-in figure without stealing your focus. Setting properties is also available.
634.0 次下载
更新时间 2011/11/29

查看许可证

For everyone that needs to plot something in a long loop, and still wants to use the computer in meanwhile, without new figures stealing your keyboard focus and disrupting your work-flow, this file emulates the built-in figure command, but if the desired figure handle already exists, it will just set it as the current figure, without making it visible or on top of other windows.

It's the same as issuing a set(0,'CurrentFigure',h) command, but encapsulated using the same syntax as figure.

Usage:

fig(123);
fig(456, 'Name', 'Figure Title');
h = fig('Name', 'New figure');
fig(h, 'Name', 'New Name');

引用格式

Rafael Oliveira (2024). Let me work, figure! (https://www.mathworks.com/matlabcentral/fileexchange/33987-let-me-work-figure), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Interactive Control and Callbacks 的更多信息
致谢

参考作品: "Smart"/Silent Figure

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0