1、Matlab中画布坐标系统

左下角为原点,横向为x,竖向为y;

%Figure在画布中的位置由 ‘Position’, [x0 y0 Width Height] 设置

Matlab多个子图Subplot位置排布

2、Subplot子图位置设置

figure(1);
subplot(2,2,1);   % 2行2列排布4个子图,第一个
subplot('position', [0.11 0.63 0.35 0.3]);   % [x0 y0 width height]
xlabel('xlabel');
ylabel('ylabel');

Matlab多个子图Subplot位置排布

subplot(2,2,2);    %第2个子图
subplot('position', [0.6 0.63 0.35 0.3]);
xlabel('xlabel');
ylabel('ylabel');

subplot(2,2,3);    %第3个子图
subplot('position', [0.11 0.15 0.35 0.3]);
xlabel('xlabel');
ylabel('ylabel');

subplot(2,2,4);   %第4个子图
subplot('position', [0.6 0.15 0.35 0.3]);
xlabel('xlabel');
ylabel('ylabel');

Matlab多个子图Subplot位置排布

相关文章:

  • 2021-07-27
  • 2021-07-11
  • 2022-12-23
  • 2021-12-04
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2021-04-30
  • 2021-09-25
  • 2021-06-15
  • 2022-01-21
  • 2021-12-02
  • 2021-08-09
  • 2021-12-25
相关资源
相似解决方案