Controlling markertype and linestyle in plotyy
Mostrar comentarios más antiguos
Hi all
I am using plotyy in the following way:
[AX,H1,H2] = plotyy(x1,y1,x2,[y2a y2b],'plot')
How do I assign different linestyle and markertype to the lines [y2a y2b]?
Cheers
Jakob
Respuesta aceptada
Más respuestas (2)
Daniel Shub
el 10 de Mzo. de 2013
If you read the manual (doc plotyy) it tells you exactly how to do it in the example
set(H1,'LineStyle','--')
set(H2,'LineStyle,':')
1 comentario
the cyclist
el 10 de Mzo. de 2013
Notice that he wants to potentially set H2(1) and H2(2) to two different values, which is not so obvious.
Jakob Sievers
el 10 de Mzo. de 2013
0 votos
Categorías
Más información sobre Two y-axis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!