How can i crop a figure

조회 수: 51 (최근 30일)
Amgad Abuwarda
Amgad Abuwarda 2018년 7월 27일
답변: Kelly Kearney 2018년 7월 27일
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
Amgad Abuwarda
Amgad Abuwarda 2018년 7월 27일
how can i know the limits?
N/A
N/A 2018년 7월 27일
just look at your values and think about the area that you want to see

댓글을 달려면 로그인하십시오.

답변 (2개)

Alex Fratila
Alex Fratila 2018년 7월 27일
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 2018년 7월 27일
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.

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by