axis changing when plotting points
Mostrar comentarios más antiguos
Im plotting data on an axes using GUIDE. I have a loop where I use the plotyy command to plot 2 graphs, one point at a time. I want to set the axis as fixed which I have done, but wanted to do it once before the loop and have it remain.
It didn't work, so I have to reset the desired Y axis range on each iteration of the loop where I plot the data (one point at a time).
Is there a way where I can fix the axis, but still have the data plot one point at a time in a loop (so I can take the axis stuff out of the loop)?
Thanks Jason
Respuesta aceptada
Más respuestas (1)
Youssef Khmou
el 18 de Sept. de 2014
One method to fix the issue is to place the axis command inside the loop, suppose the limits are :
L=[xmin xmax ymin ymax];
Inside the loop you write :
axis(L)
1 comentario
Jason
el 18 de Sept. de 2014
Categorías
Más información sobre Two y-axis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!