how to change things after using plotyy
이전 댓글 표시
after using the plotyy function with the order-
[AX,H1,H2]= plotyy(VEC,diviation,VEC,diviation_T,'plot');
I want to change a few things- 1. the tick's location in the X-axe, and the xticklabel.. the problem is that when I use the order-
set(gca,'XTickLabel',{'0-5','6-11','12-17','18-23','24-30','31-36','37-42','43-48','49-54','55-60','61-69'},'XTick',VEC,'FontWeight','bold','FontSize',20);
the graph just adds the new ticks without erasing the old ones.
2. also I can't change the linestyle- I want it to be '-s' or '-o' but I can only put '-' or ':' without getting an error notification.
3. when using the order above - set(gca,'XTickLabel',.... it changes only the x-axe and one of the y-axes, I want it to change both of the Y-axes.

채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Two y-axis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!