【发布时间】:2011-10-04 19:59:37
【问题描述】:
在 matlab 中,子图周围浪费了大量的空间。例如,在这个例子中:
t = 0:0.001:2*pi+0.001;
figure(2);
for i = 1 : 25;
subplot(5,5,i);
plot(t, sin(i*t));
axis off
end
图上超过 50% 的空间被浪费为“空白” 我想缩小该空白空间,但未能成功确定这样做的机制。想法?
【问题讨论】:
-
注意:截至 2019b,Mathworks 已使用 tiledlayout 命令解决了此问题。