How to add markers to a single line in plotyy

I am trying to add markers to a single line on my plotyy.
plotyy(newtime1,AnInput1f,SPMnewtime,SPM)
I would like to add them at every SPM value (8 in all) I have read the manual but I am still very confused!

댓글 수: 1

dpb
dpb 2015년 3월 19일
What does "marker" mean to you in this context?

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

 채택된 답변

Konstantinos Sofos
Konstantinos Sofos 2015년 3월 19일
편집: Konstantinos Sofos 2015년 3월 19일

0 개 추천

Hi,
Here's one way:
[ax h1 h2] = plotyy(newtime1,AnInput1f,SPMnewtime,SPM)
set(h1,'Marker','.','MarkerSize',8)
set(h2,'Marker','s','MarkerSize',8)
Regards,

댓글 수: 1

if you need only to SPM just comment out the first 'set' to h1

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Two y-axis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by