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!

11 次查看(过去 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 中查找有关 Environment and Settings 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by