Why do I get an overlapped plot when I use the PLOTYY function with the SUBPLOT function?
Show older comments
Why do I get an overlapped plot when I use the PLOTYY function with the SUBPLOT function?
When I use the following code the resulting figure shows overlapped y-tick labels. All the subplots are also in the background and only one plot is displayed.
A=[1,2,3,4,5,6,7,8];
x=1:8;
for I=1:4
subplot(2,2,I)
plotyy(x,A,x,A);
end
% this command will not work and creates overlapped plot
subplot(2,2,2)
plotyy(x,A,x,A);
Accepted Answer
More Answers (0)
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!