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);
Best Answer