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 Comment

What does "marker" mean to you in this context?

Sign in to comment.

 Accepted Answer

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 Comment

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

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!