如何使用gnuplot创建72dpi以上的PNG图像? [英] How to create PNG images with more than 72dpi using gnuplot?

查看:196
本文介绍了如何使用gnuplot创建72dpi以上的PNG图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 gnuplot 中创建一个PNG图像,并在 MS-Word 中使用它.但是,如果我使用

I'd like to create a PNG image in gnuplot and use it in MS-Word. However, if I use

set terminal pngcairo enhanced font "Times New Roman,12.0" size 15cm,11cm  

结果证明质量很差.我读到 GNUPLOT 仅使用 72dpi .有没有办法增加这个数字?

the quality turns out to be poor. I read that the GNUPLOT uses only 72dpi. Is there a way to increase this number?

推荐答案

只需以像素而不是厘米为单位指定所需的分辨率:

Simply specify the desired resolution in pixels rather than in centimeters:

set terminal pngcairo enhanced font "Times New Roman,12.0" size 1500,1100

将生成宽1500像素,高1100像素的图像.另请参见 help pngcairo :

will generate an image that is 1500 pixels wide and 1100 pixels high. See also help pngcairo:

输出的默认大小是640 x 480像素. size 选项将其更改为用户要求的任何内容.默认情况下,X和Y大小以像素为单位,但其他单位也是可以的(当前为厘米和英寸).以厘米或英寸为单位的尺寸将假定分辨率为72 dpi转换为像素.

The default size for the output is 640 x 480 pixels. The size option changes this to whatever the user requests. By default the X and Y sizes are taken to be in pixels, but other units are possible (currently cm and inch). A size given in centimeters or inches will be converted into pixels assuming a resolution of 72 dpi.

这篇关于如何使用gnuplot创建72dpi以上的PNG图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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