Is it possible to stitch two subplot images together, without any gap in between the subplot images?
조회 수: 3 (최근 30일)
이전 댓글 표시
I need to join two subplot images {subplot(2,1,1) and subplot(2,1,2)} into a single image without any gap between the images
댓글 수: 0
답변 (2개)
Konstantinos Sofos
2016년 2월 28일
set(gca, 'XTickLabel', [],'XTick',[])
in the appropriate subplot...
t = 0:0.001:2*pi+0.001;
figure;
for i = 1 : 4;
subaxis(2,2,i, 'Spacing', 0.03, 'Padding', 0, 'Margin', 0);
plot(t, sin(i*t),'LineWidth',1.5);
axis off
end
댓글 수: 0
Jan
2016년 2월 28일
subplot is an axes command with a smart setting of the position. So you can set the position property directly:
axes('Position', [0.1, 0.1, 0.4, 0.8]);
axes('Position', [0.5, 0.1, 0.4, 0.8]);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!