【发布时间】:2018-04-22 14:05:22
【问题描述】:
我在 Matlab 中的图形对象中添加了多个时间序列,并将它们绘制为图表上的子图,以将它们一个接一个地显示在一起。可以有动态数量的时间序列图,我无法提前知道会有多少。
不幸的是,似乎正在发生的事情是,随着新的子图的添加,数字图没有扩展到包含滚动条。是否有一个我没有看到的特定标志包含它并阻止我的图形对象中的图变得越来越小?
举个例子:
%Maximise the figure window to full screen
f = figure;
f=gcf;
f.Units='normalized';
f.OuterPosition=[0 0 1 1];
%Add a panel to the figure, we'll add subplots to this
p = uipanel('Parent',f,'BorderType','none');
p.Title = 'Examples';
p.TitlePosition = 'centertop';
p.FontSize = 12;
p.FontWeight = 'bold';
%Add a timeseries subplot to the panel
subplot((length(motifIndexAfterThresholds)*2)+1,1,1, 'Parent',p)
ts0 = timeseries(E4_hrX(startIndex:endIndex),'Name','Parent Motif');
plot(ts0)
title('Parent')
在这一点之后,我可以添加任意数量的子图,但面板并没有像我希望的那样伸展。
如果有人能提供建议,我将非常感激。
【问题讨论】:
标签: matlab