Controlling markertype and linestyle in plotyy
이전 댓글 표시
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
채택된 답변
추가 답변 (2개)
Daniel Shub
2013년 3월 10일
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
the cyclist
2013년 3월 10일
Notice that he wants to potentially set H2(1) and H2(2) to two different values, which is not so obvious.
카테고리
도움말 센터 및 File Exchange에서 Two y-axis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!