Why is my plot missing lines?

6 次查看(过去 30 天)
Hi,
I have a matrix called comparisontable_abs and when I plot it using the plot() function, I get a plot which looks right but is missing two lines. Since the matrix comparisontable_abs contains 9 rows I expect there to be 9 lines but the plot only shows 6. Why is that?
Thanks!
My code:
plot(comparisontable_abs);
xlabel('Participants')
ylabel('Hurst exponent')
legend('head - balls glitch', 'left hand - balls glitch', 'right hand - balls glitch',...
'head - baskets glitch', 'right hand - baskets glitch', 'left hand - baskets glitch',...
'head - non-glitch', 'right hand - non-glitch', 'left hand - non-glitch')
grid on
title ('[HIGH] Difference in Hurst (distances) between ball, basket and no glitch')
newcolors = {'red','red','red','yellow','yellow','yellow','green','green','green'};
colororder(newcolors);

采纳的回答

Davide Masiello
Davide Masiello 2022-3-2
编辑:Davide Masiello 2022-3-2
It actually plots 9 lines, but the 1st and 2nd are equal, and the same goes for the 4th and 5th, and 7th and 8th.
So they overlap in you plot.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by