필터 지우기
필터 지우기

Remove white/blank space from plot

조회 수: 18 (최근 30일)
Luccas S.
Luccas S. 2022년 8월 11일
답변: Rik 2022년 8월 11일
Is there any way to remove the areas or reduce the blank parts of the plot as much as possible?
  댓글 수: 3
Luccas S.
Luccas S. 2022년 8월 11일
I'm saving the images as eps, using saveas()
Adam Danz
Adam Danz 2022년 8월 11일
Use exportgraphics and if that doesn't give you a the clipping you want, create the axes with tiledlayout using padding='tight'.

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

답변 (1개)

Rik
Rik 2022년 8월 11일
This answer will only work for raster images (so it will not work for eps).
I use a pragmatic approach. I export in high resolution to a raster image and then use the attached function to crop the border. It is not optimal, but it allows me to use the default for most graphics functions, while still ending up with border-less image.

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by