matlab outerposition,Matlab:关于Position与OuterPosition属性的区别 | 学步园

设置figure位置scrsz = get(0,'ScreenSize');%显示电脑的分辨率,我的电脑1280*800,则scrsz =

[1 1 1280 800]

ScreenSize is 四维向量: [left, bottom, width, height]:

设置figure的大小为1/4显示器大小并置于左上方

figure('Position',[1 scrsz(4)/2 scrsz(3)/2 scrsz(4)/2])Figure OuterPosition属性包括title bar, menu bar, tool bars, and outer edges.

Figure Position属性不包括title bar, menu bar, tool bars, and outer edges

set(0,'HideUndocumented','off')

>> get(gcf)

...

Position = [360 278 560 420]

...

OuterPosition = [352 270 576 511]

...

设置坐标轴的位置Axes的OuterPositio属性包括axis labels, title, and a margin,对于只有一个axes对象的figure,就是figure的内部

Axes的Position属性就是axes的边界以内不包括the tick marks and labels, title, and axis labels

Axesde TightInset属性就是axes的text labels, title, and axis labels.和axes边界之间的空白距离

set(gco,'Units','pixels')

get(gco)

...

OuterPosition = [1 1 560 420]

...

Position = [73.8 47.2 434 342.3]

...

TightInset = [22 17 5 8]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值