필터 지우기
필터 지우기

Huge file size of figures printed in vector format (e.g. eps) with -painters renderer?

조회 수: 19 (최근 30일)
Jaime Palter
Jaime Palter 2015년 11월 23일
답변: Rob Hart 2022년 8월 18일
Between submitting a manuscript and receiving its reviews, I upgraded to Matlab 2015a. I am now updating the figures in response to the reviews. The plots are information-rich, some containing a filled contour plot behind a quiver plot. The old version of Matlab handled the graphics beautifully, with average file size < 1 MB. I am using identical scripts to plot, but now the average file size is > 30 MB, making editing and uploading untenable. The final print command is:
print -painters -depsc filename.eps
I've seen that others have posted similar questions, but cannot find a work-around that solves it.

답변 (3개)

Ilja Maljutenko
Ilja Maljutenko 2016년 7월 12일
Since new graphics engine splits objects into small pieces when exporting with painters (each containing information about its characteristics), then there is nothing to do but downgrade.
I wish there would be at least some reasonable response from Mathworks -.- . Hopefully something is hatching under cover of silence.

Alexandros Filotheou
Alexandros Filotheou 2022년 3월 31일
편집: Alexandros Filotheou 2022년 3월 31일
One workaround I have recently found is that you can open the .eps in GIMP, save to .png, and reconvert to .eps. The resolution of the final .eps depends on the rendering resolution when you initially open it with `GIMP`, and therefore so does the final file size. But it does wonders; I hope this helps.

Rob Hart
Rob Hart 2022년 8월 18일
Try running 'cleanfigure' before exporting. Reduced one of my figures from 2 MB to 52 KB.

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by