Enlarging Data Sets on Plot

2 views (last 30 days)
Kayla Washington
Kayla Washington on 2 Aug 2021
Answered: Simon Chan on 2 Aug 2021
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

Accepted Answer

Simon Chan
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')

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!