gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 02:03:41 25 4
gpt4 key购买 nike

我想在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com