1) Method
1:
复制代码
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.
在由四个归一化坐标规定的位置上建立坐标轴。
- figure('Name','默认');
- subplot(2,2,1);
- subplot(2,2,2);
- subplot(2,2,3);
- subplot(2,2,4);
- figure('Name','紧凑');
- subplot('Position',[0.02 0.65 0.3 0.3]);
- subplot('Position',[0.35 0.65 0.3 0.3]);
- subplot('Position',[0.02 0.3 0.3 0.3]);
- 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.
在由四个归一化坐标规定的位置上建立坐标轴。
