Figure window placement - fig.m

版本 1.0.0.0 (1.8 KB) 作者: Miroslav Balda
Function fig.m opens figure window on coded place of the screen.
4.0K 次下载
更新时间 2006/8/17

查看许可证

Function fig.m is prepared for fast positioning of a figure windows on screen by means of the window position code. The general positioning is also possible. Position codes belong to parts of the screen as follows:

1 top left
2 top right
3 bottom left
4 bottom right
5 full screen
6 left half
7 right half
8 upper half
9 lower half
10 user defined position

The other way to define general position of a figure window is via the position vector of normalized measures [left bottom width height].
It obtains the position code equal 10.

Function calling:
~~~~~~~~~~~~~~~~~
fih = fig(pos); % Creates a figure window and its handle
pos is a position code of the figure, or a vector of four real elements <= 1 = position measures
fih is a handle of the figure

Examples:
~~~~~~~~~
hf = fig([.25, .25, .5, .5]); % figure in the center of the screen
fig(2); % figure window in the right upper quarter of the screen
fig(10); % last user's figure position (here in the screen center)

引用格式

Miroslav Balda (2024). Figure window placement - fig.m (https://www.mathworks.com/matlabcentral/fileexchange/9035-figure-window-placement-fig-m), MATLAB Central File Exchange. 检索时间: .

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

Community Treasure Hunt

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

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

Enhancement of the function behaviour