How can I arrange the ylabels using subplot and plotyy such that they do not overlap?
Show older comments
Hi all:
When I combine the plotyy and subplot command the ylabels overlap:
figure
for i = 1:2
subplot(1,2,i);
ax = plotyy(1:10,randn(10,2),1:10,randn(10,2));
set(get(ax(1),'Ylabel'),'String','label1')
set(get(ax(2),'Ylabel'),'String','label2')
end
Does anybody have an idea how to resolve this issue?
Best, Peter
Accepted Answer
More Answers (1)
Image Analyst
on 20 Feb 2013
0 votes
Isn't there a 'Position' property you can also set?
Categories
Find more on Two y-axis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!