Making plot markers distinct

5 次查看(过去 30 天)
Hello experts,
I have the following plot with markers. The markers for May, June, July and August are statistically significant while others are not. How do I make the significant makers distinct from the others for example, like using a different color?

采纳的回答

Voss
Voss 2022-2-4
x = 1:11;
y = [4.89 4.68 4.54 4.62 4.63 4.95 5.24 5.32 5.21 5.17 5.08];
plot(x,y,'-o');
hold on
idx = 5:8;
plot(x(idx),y(idx),'ro');
xlim(x([1 end]));

更多回答(1 个)

Davide Masiello
Davide Masiello 2022-2-4

类别

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

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by