png - 如何使用 gnuplot 创建超过 72dpi 的 PNG 图像?

标签 png gnuplot resolution dpi

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

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

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

最佳答案

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

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

将生成一个 1500 像素宽和 1100 像素高的图像。另见 help pngcairo:

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.

关于png - 如何使用 gnuplot 创建超过 72dpi 的 PNG 图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45484599/

相关文章:

ffmpeg - 如何强制ffmpeg使用目录中的所有图像?

渲染时 JavaFX 图像 (PNG) 透明清晰度丢失

javascript - React-chartjs-2 圆环图导出为png

perl - 如何从 perl 调用 gnuplot 脚本

ubuntu - 如何在 Veusz 中添加图像?

java - 在Java中,创建支持不同分辨率/显示模式的应用程序

encoding - 使用 ffmpeg 将 png 帧无损编码为 webm

macos - 警告 : Plotting with an 'unknown' terminal. 将不会生成任何输出。请选择带有 'set terminal' 的终端

Linux Mint 17.2 屏幕分辨率

python - OpenCV 中模板匹配的分辨率操作