【问题标题】:Gnuplot: linetype Version 5.0 patchlevel 3Gnuplot:线型版本 5.0 补丁级别 3
【发布时间】:2016-08-10 14:27:56
【问题描述】:

我正在使用 gnuplot 5.9 补丁级别 3,我想使用不同的 lt,因此我想从 gnuplot 5.0 补丁级别 1 复制以下 tutorial

特别是如果我从 term 和 .eps 复制并启动它,我看不到虚线,这里是输出

特别是我不明白以下行:

You will only see dashed lines if your current terminal setting permits it

这是什么意思?如何“强制”gnuplot 以 .eps、.png 或通过屏幕打印不同的虚线?

我找到了this 指南,但它指的是 4.2.5 版本的 gnuplot,即使我使用的是:

set termoption dashed 要么 set terminal x11 dashed

我看不到虚线...这些是我可以在来自help term 的 gnuplot 5.0 补丁级别 3 中使用的终端:

canvas            cgm               context           corel
dumb              dxf               eepic             emf
emtex             epslatex          fig               hpgl
latex             mf                mp                pcl5
pop               postscript        pslatex           pstex
pstricks          push              qms               svg
tek40xx           tek410x           texdraw           tgif
tkcanvas          tpic              vttek             x11
xlib              xterm

我也红了这个answer 但是gnuplot 5.0 不支持pngcairo (???) 作为测试,其实我只是试试:

set term pngcairo dashed

我收到了答案:

Terminal type set to 'unknown' ^ unknown or ambiguous terminal type; type just 'set terminal' for a list

因此,我尝试使用自制软件在this page 之后安装 pngciaro,但不幸的是,由于关于 gnuplot 5.0 的问题没有答案,并且我收到一些可能与安装有关的警告,因此我发现它并没有那么有用pngcairo 的。

【问题讨论】:

    标签: svg png gnuplot


    【解决方案1】:

    我正在使用 gnuplot 5.9 补丁级别 3

    你的意思是 5.0.3 吗?您附加的图像显示虚线,那么您的问题是什么?然后我尝试使用 eps 终端链接到这个示例脚本,它在 5.0.3 上也可以正常工作。

    Gnuplot 使用不同的“终端”渲染输出,一些终端不支持虚线,这包括默认的 PNG 终端 png,来自 cairo 库的 png 终端 pngcairo,但支持虚线线。终端必须在编译时集成到您的 Gnuplot 构建中,因此必须标记选项以启用某些终端。如果 Gnuplot 不是使用 cairo 库构建的,则 pngcairoepscairo 终端将不可用,您将收到该消息

    未知或不明确的终端类型;为列表键入“设置终端”

    当您尝试将您的绘图设置为这些终端之一时。当您执行 set term 时,它只会显示编译您的构建的终端。

    Gnuplot 5 确实支持 pngcairo,它只需要用它来构建。你在 OSX 上并安装了自制软件吗?只需使用 cairo 支持安装它

    brew install gnuplot --with-cairo
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-11-03
      • 2015-05-18
      • 1970-01-01
      • 1970-01-01
      • 2013-10-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多