Reduce Grey Space around Images in a Figure
    조회 수: 8 (최근 30일)
  
       이전 댓글 표시
    
I have two images that I want to display side-by-side, but the amount of grey space is large making the images small. How can I reduce the amount of grey space around the images to show more of the images. Below is how I am displaying the images.
subplot(121);
imshow(my_image);
subplot(122);
imshow(my_image2);
댓글 수: 0
채택된 답변
추가 답변 (1개)
  Paulo Silva
      
 2011년 4월 26일
           d=0.05; %distance between images
   moon = imread('moon.tif');
   s1=subplot(121);
   imshow(moon);
   s2=subplot(122);
   imshow(moon);
   g1=get(s1,'position');
   set(s1,'position',[0 0 0.5 1])
   g2=get(s2,'position');
   set(s2,'position',[g1(1)+g1(3)+d 0 0.5 1])
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!