Figures stretch when saved as image

조회 수: 12 (최근 30일)
Jon Terry
Jon Terry 2017년 11월 27일
댓글: Matt J 2017년 11월 28일
I have the following figure (.fig file, shown on the left), which I want to save as an image file type. When I save it as a jpeg, the image is stretched (shown on the right). I've tried saving it as a pdf, eps, jpeg, and png, and they all stretch. With a previous version of Matlab, the image file would have the same dimensions as the .fig file. How can I fix this? I'm using Matlab 2017a.
Edit: I didn't have this problem in a previous version (2015, I believe) of Matlab.
  댓글 수: 2
Jon Terry
Jon Terry 2017년 11월 27일
Thanks Walter. I tried changing the settings referenced in the link, but it didn't fix the problem. To clarify, I generate a figure and then go through File > Save As to save the image files.

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

채택된 답변

Matt J
Matt J 2017년 11월 28일
You might try the export_fig submission, which will let you export images faithfully to the appearance of the figure on the screen.
  댓글 수: 2
Jon Terry
Jon Terry 2017년 11월 28일
Thanks, I'll give it a try. Although it seems strange to me that I'd need to use a third-party tool to be able to do what Matlab should do on it's own, and already did with a previous version.
Matt J
Matt J 2017년 11월 28일
I can't account for your experience with previous versions. The reason for the existence of export_fig is that the image conversion has always been unreliable.

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by