How can i crop a figure

51 visualizaciones (últimos 30 días)
Amgad Abuwarda
Amgad Abuwarda el 27 de Jul. de 2018
Respondida: Kelly Kearney el 27 de Jul. de 2018
Hello I have a figure as a result of matlab code, it is like a map, large amount of data (lines and points) . but i do not need it all, i need only a part of it, so how can i crop this figure? any suggestions? thanks
  3 comentarios
Amgad Abuwarda
Amgad Abuwarda el 27 de Jul. de 2018
how can i know the limits?
N/A
N/A el 27 de Jul. de 2018
just look at your values and think about the area that you want to see

Iniciar sesión para comentar.

Respuestas (2)

Alex Fratila
Alex Fratila el 27 de Jul. de 2018
To expand on the above answer, in addition to xlim, ylim is also an option, or you can wrap both together with the axis function. Check out this page for examples!

Kelly Kearney
Kelly Kearney el 27 de Jul. de 2018
Just to clarify, when you say "like a map", you don't mean it's a map axis (Mapping Toolbox), do you? Cropping a map axis is much more complicated than just changing the x/y limits in a standard axis.

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by