When I save a figure as a postscript or pdf the figure is saved as a collection of images rather than the individual objects. I recently upgraded my Matlab from 2010a to 2016a and do not have this problem using the 2010a version. Please advise!

조회 수: 26 (최근 30일)
When I save a figure as a postscript or pdf the figure is saved as a collection of images rather than the individual objects. I recently upgraded my Matlab from 2010a to 2016a and do not have this problem using the 2010a version. Please advise how to fix this in my script!

답변 (1개)

Richard Quist
Richard Quist 2016년 5월 23일
If MATLAB thinks the figure is too complicated it will produce an embedded image in the output file, rather than vectorized (editable) content. You can force MATLAB to produce vectorized output by using the -painters option when calling the print command, as in:
print -painters -dpsc output.ps
or
print -painters -dpdf output.pdf
The output files will then contain vectorized content instead of embedded images.
See the Vector Graphics File discussion in the description of the formattype input argument in the documentation of the print command for more details.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by