필터 지우기
필터 지우기

Add an image to subplot

조회 수: 21 (최근 30일)
MattC
MattC 2023년 3월 16일
답변: Walter Roberson 2023년 3월 17일
Hi All, I have an image in the .jpg format and I would like to insert at (5,1,1) axes of my subplot. However, since there is only 1 column the image widens and blurs as well how do I fix the resolution or size of the image that is looks good?
I am open to changing the image to any format jpg,png,fig. Anything that makes the image readable and nice
  댓글 수: 2
Jan
Jan 2023년 3월 17일
If the axes created by subplot has more pixels than the image, you cannot avoid a blurring. Converting the image to other formats will not increase the number of existing pixels also.
Maybe a imresize(... 'lanczos') to the size of the axes reduces the artifacts a little bit.
MattC
MattC 2023년 3월 17일
Is there a way to add a picture above the subplots? I think that would work as well

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

채택된 답변

Walter Roberson
Walter Roberson 2023년 3월 17일
axis image
after you display the plot. This will set the aspect ratio to square so that the image does not get streched wide.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by