我可以动态添加change subplot尺寸吗?例如,我有subplot(2,1,1)和subplot(2,1,2),但现在我想保留这两列,并添加第三列,这样我就可以在不丢失前两个绘图的情况下执行subplot(3,1,1)。这有可能吗?
发布于 2016-09-22 00:52:28
尝试使用以下代码:
figure
x = linspace(-5,5);
ha1 = subplot(2,1,1)
plot(x, sin(x))
title('First subplot')
ha2 = subplot(2,1,2)
plot(x, sin(2*x))
title('Second subplot')
subplot(3,1,2,ha1)
subplot(3,1,3,ha2)
subplot(3,1,1,'align')
title('New First subplot')https://stackoverflow.com/questions/39621861
复制相似问题