Borrar filtros
Borrar filtros

when zooming the plotted dada exceeds axes limits

7 visualizaciones (últimos 30 días)
Silvia
Silvia el 22 de Feb. de 2014
Respondida: Divyam el 17 de Sept. de 2024 a las 11:03
Hello,
I have a doubt. When zooming the data plotted exceed the axes limits and it appear over the GUI. I have used in the plot the option 'Clipping on' and I still have the problem.
Does anyone how to solve the problem?? Thank you very much.
Silvia

Respuestas (1)

Divyam
Divyam el 17 de Sept. de 2024 a las 11:03
Hi @Silvia,
  • If you are setting the "xlim" and "ylim" properties and want the zoom to be reset to these values, you can add the following code to the end of your plotting code:
zoom reset;
  • This issue can also be avoided by fitting the axes box tightly around the data by setting the axis limits equal to the range of the data using the below code:
xlim([minX, maxX]);
ylim([minY, maxY]);
axis tight;
If the issue still persists, consider upgrading to a newer version of MATLAB using this link: https://www.mathworks.com/downloads/
For more information regarding the "zoom" function and "axis" function, refer to the following documentation:

Categorías

Más información sobre Data Exploration en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by