problem with 2nd axis Yticks with plotyy and semilogy
이전 댓글 표시
Hi folks, I was hoping the following code:
[ax,h1,h2]=plotyy([overlap,overlap],[error{2},error{3}], ...
overlap,initial,'semilogy','semilogy');
set(ax(1),'YLim',[10.^(-15) 10.^(-1)]);
set(ax(1), 'YTick', [10.^(-15) 10.^(-13) 10.^(-11) 10.^(-9) ...
10.^(-7) 10.^(-5) 10.^(-3) 10.^(-1)])
set(ax(2),'YLim',[10.^(-6) 10.^(-2)]);
set(ax(2),'YTick', [10.^(-6) 10.^(-5) 10.^(-4) 10.^(-3) 10.^(-2)]);
Would put the 10^(-6) ... 10^(-2) ticks on the right y axis of the plot. Instead I get the attached plot. Any suggestions?
채택된 답변
추가 답변 (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!