新浪博客

【原创】调整Matlab中Subplot间距

2013-06-10 05:00阅读:
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.
在由四个归一化坐标规定的位置上建立坐标轴。


src: http://www.ilovematlab.cn/forum.php?mod=viewthread&action=printable&tid=93345
(2)Method 2:


在图上的工具栏中点Tools,Align Distribute Tool,自己设定间距。
注意:1)需要先选中两幅图片,再调整间距;2)一定要用‘shift+click’选中待调整的两幅图片,不可以直接点击选中。

我的更多文章

下载客户端阅读体验更佳

APP专享