problem with 2nd axis Yticks with plotyy and semilogy
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Two y-axis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!