Borrar filtros
Borrar filtros

How to add markers to a single line in plotyy

1 visualización (últimos 30 días)
James Porter
James Porter el 19 de Mzo. de 2015
Editada: Konstantinos Sofos el 19 de Mzo. de 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 comentario
dpb
dpb el 19 de Mzo. de 2015
What does "marker" mean to you in this context?

Iniciar sesión para comentar.

Respuesta aceptada

Konstantinos Sofos
Konstantinos Sofos el 19 de Mzo. de 2015
Editada: Konstantinos Sofos el 19 de Mzo. de 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 comentario
Konstantinos Sofos
Konstantinos Sofos el 19 de Mzo. de 2015
if you need only to SPM just comment out the first 'set' to h1

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Two y-axis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by