Why do I get an overlapped plot when I use the PLOTYY function with the SUBPLOT function?
Mostrar comentarios más antiguos
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);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Two y-axis en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!