||
方法(1):
set (gca,'position',[0,0,1,1])
代码:
x=-2*pi:0.1:2*9i;
y=sin(x);
figure;
plot(x,y,'k-') %节点位移图形输出
% set (gca,'position',[0,0,1,1])
set (gca,'position',[0.05,0.05,0.9,0.9])
方法(2):
在图形文件figure的菜单上点击file->export setup
size选项中,对"expand axes to fill figure"选项打勾,如下图:
参考&致敬:
http://www.chinabaike.com/t/38473/2014/0624/2549913.html
http://www.zdh1909.com/html/matlab/16381.html
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-27 19:35
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社