Making plot markers distinct

조회 수: 13 (최근 30일)
mpho bosupeng
mpho bosupeng 2022년 2월 4일
댓글: Voss 2022년 2월 6일
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]));
  댓글 수: 2
mpho bosupeng
mpho bosupeng 2022년 2월 6일
Thank you 🙏🙏 @Benjamin. It works great.
Voss
Voss 2022년 2월 6일
@mpho bosupeng You are welcome!

댓글을 달려면 로그인하십시오.

추가 답변 (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