Filter löschen
Filter löschen

How to add markers to a single line in plotyy

1 Ansicht (letzte 30 Tage)
James Porter
James Porter am 19 Mär. 2015
Bearbeitet: Konstantinos Sofos am 19 Mär. 2015
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 Kommentar
dpb
dpb am 19 Mär. 2015
What does "marker" mean to you in this context?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Konstantinos Sofos
Konstantinos Sofos am 19 Mär. 2015
Bearbeitet: Konstantinos Sofos am 19 Mär. 2015
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 Kommentar
Konstantinos Sofos
Konstantinos Sofos am 19 Mär. 2015
if you need only to SPM just comment out the first 'set' to h1

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Two y-axis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by