Saving MATLAB figures as PDF with quality 300 DPI, centered

不打扰是莪最后的温柔 提交于 2019-12-04 03:49:13

Try using the following command:

print -painters -dpdf -r300 test.pdf

You will, of course, already have to have a file named test.pdf in the current directory.

Some notes on the -commands as well.

  • -painters: this specifies the use of the painters alogrithm for the exporting.
  • -dpdf: specifies a vector image, specially a pdf in this case. This is through Ghostscript.
  • -r300: specifies a 300 dpi resolution. -r400 would be 400 dpi and so on.

On an off note. I tend to just save the figure as a high DPI tiff image and import that tiff into another program where I actually assemble my figure(s) for the paper. I tend to lean towards CorelDraw personally.

I would recommend to check the exportfig package

exportfig(gcf, path_to_file, 'format','pdf','Resolution', 300 )

also, you can check fig package, which is nice to call before the exportfig:

figure
plot(x,y)
fig
exportfig(gcf, path_to_file, 'format','pdf','Resolution', 300 )    
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!