将MATLAB图形另存为PDF,质量为300 DPI,居中 [英] Saving MATLAB figures as PDF with quality 300 DPI, centered

查看:190
本文介绍了将MATLAB图形另存为PDF,质量为300 DPI,居中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将MATLAB图形另存为PDF,质量为300a DPI ,并居中

I want to save a MATLAB figure as PDF, with quality 300 DPI, and centered.

到目前为止,我设法保存了它,但是图像似乎被裁剪了.我将页面类型更改为 A3 并解决了该问题,但是我正在寻找更优雅的东西.我是通过GUI进行操作的,但是也许在MATLAB中从命令行更容易.

So far I managed to save it, but the image appears cropped. I changed the page type to A3 and kind of solves the problem, but I am looking for something more elegant. I am doing it from the GUI, but maybe from the command line is easier in MATLAB.

是否有任何软件包或脚本使此操作(出版物和论文的基本任务)更容易些?

Is there any package or script that makes this (fundamental task for publications and papers) a bit easier?

推荐答案

尝试使用以下命令:

print -painters -dpdf -r300 test.pdf

当然,您必须在当前目录中拥有一个名为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:这指定在导出中使用painter alogrithm.
  • -dpdf:指定矢量图像,在这种情况下特别是pdf.这是通过Ghostscript进行的.
  • -r300:指定300 dpi分辨率. -r400为400 dpi,依此类推.

音符不清晰.我倾向于只是将图形保存为高DPI的tiff图像,然后将该tiff导入另一个程序中,在该程序中我实际上将我的图形组合到纸上.我倾向于个人倾向于CorelDraw.

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.

这篇关于将MATLAB图形另存为PDF,质量为300 DPI,居中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆