Gnuplot:线型版本 5.0 补丁级别 3

Gnuplot: linetype Version 5.0 patchlevel 3

我正在使用 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

这是什么意思?我如何 'force' 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 的安装有关。

I am using gnuplot 5.9 patchlevel 3

你确定是 5.0.3?您所附的图片显示虚线,您的问题是什么?然后我用 eps 终端尝试了这个示例脚本 link,它在 5.0.3 上也能正常工作。

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

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

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

Gnuplot 5 支持 pngcairo,它只需要用它来构建。您在 OSX 上并且安装了自制程序吗?只需使用

在 cairo 支持下安装它
brew install gnuplot --with-cairo