Enlarging Data Sets on Plot
2 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to plot multiple time series on the same plot with increments of 20 in between them. When I plot them, it, They're all really small, so i was wondering if there was a way to mess with the axis to enlarge each data set to make them easier to compare. I've attach the image and data set. Thank you so much in advance! t is time and M is the y variables.
Here is the code:
figure(1)
M=MTR([1:5],:);
for i=1:5
plot(t,M(i,:)+(20*i)','Linewidth',1)
hold on
end
0 件のコメント
採用された回答
Simon Chan
2021 年 8 月 2 日
Could function stackedplot satisfy your needs? No enlargement on the axis but there is a cursor to report the values on each data.
stackedplot(t,M')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!