加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

【原创】调整Matlab中Subplot间距

(2013-06-10 05:00:54)
1) Method 1:

  1. figure('Name','默认');
  2. subplot(2,2,1);
  3. subplot(2,2,2);
  4. subplot(2,2,3);
  5. subplot(2,2,4);

  6. figure('Name','紧凑');
  7. subplot('Position',[0.02 0.65 0.3 0.3]);
  8. subplot('Position',[0.35 0.65 0.3 0.3]);
  9. subplot('Position',[0.02 0.3 0.3 0.3]);
  10. subplot('Position',[0.35 0.3 0.3 0.3]);
复制代码
subplot('Position',[left bottom width height]) creates an axes at the position specified by a four-element vector. left, bottom, width, and height are in normalized coordinates in the range from 0.0 to 1.
在由四个归一化坐标规定的位置上建立坐标轴。



(2)Method 2:

在图上的工具栏中点Tools,Align Distribute Tool,自己设定间距。

注意:1)需要先选中两幅图片,再调整间距;2)一定要用‘shift+click’选中待调整的两幅图片,不可以直接点击选中。

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有