Enlarging Data Sets on Plot
2 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Simon Chan
on 2 Aug 2021
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 Comments
More Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!