avatar
A matlab question# EE - 电子工程
z*n
1
How to set the figure window size to fit the plot area
size?
I am displaying a square area, and want to set the
figure in this way. The figure window is by default
a rectangular.
avatar
w*a
2
忘了具体哪个命令,aspect ratio是可以设置1:1的吧?
avatar
g*l
3
axis equal
好像是

【在 z*****n 的大作中提到】
: How to set the figure window size to fit the plot area
: size?
: I am displaying a square area, and want to set the
: figure in this way. The figure window is by default
: a rectangular.

avatar
z*n
4
that only makes the figure in rectangular area.
What I want is to make the window fit the size of figure.

【在 g********l 的大作中提到】
: axis equal
: 好像是

avatar
z*m
5
如果用的是7.0以后的版本,x,y axis的范围是可以调整的,直接在x,y axis输入你
要看的坐标范围就行了
avatar
c*u
6
simple one, axis equal, then axis tight, but this will still leave
blank area around the axes.
Use figure and axes handles with "set" & "get" for "Position" to get
precision control. This can be quite troublesome if you want to absolutely
make the figure sit in the same position in a GUI, i.e.,
axesPos = get(gca, 'Position');
figPos = get(gcf, 'Position');
axesUnit = get(gca, 'Units'); %default is proportion, if yours isn't,
modify
figUnit = get(gcf, 'Units'); % default is pixel
% convert the

【在 z*****n 的大作中提到】
: How to set the figure window size to fit the plot area
: size?
: I am displaying a square area, and want to set the
: figure in this way. The figure window is by default
: a rectangular.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。