Gnuplot:linetype Version 5.0 patchlevel 3

时间:2016-08-10 14:27:57

标签: svg png gnuplot

我正在使用gnuplot 5.9 patchlevel 3,我想使用不同的lt,因此我想从gnuplot 5.0 patchlevel 1重现以下这个tutorial

特别是如果我复制它并从术语和.eps启动它我无法看到虚线,这里是输出example

特别是我不明白以下几行:

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

这是什么意思?我怎能强迫' gnuplot在.eps,.png或通过屏幕打印不同的虚线?

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

set termoption dashed 要么 set terminal x11 dashed

我看不到虚线......这些是我可以在help term的gnuplot 5.0 patchlevel 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

因此我尝试使用自制软件安装pngciaro this page后我发现不太可能因为关于gnuplot 5.0的问题没有答案而且因为我收到一些可能与之相关的警告pngcairo的安装。

1 个答案:

答案 0 :(得分:2)

  

我正在使用gnuplot 5.9 patchlevel 3

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

Gnuplot使用不同的"终端"呈现输出,一些更多的终端不支持支持虚线,这包括默认的PNG终端png,来自cairo库的png终端,{但是,{1}}支持虚线。必须在编译时将终端集成到Gnuplot构建中,因此必须标记选项以启用某些终端。如果Gnuplot没有使用cairo库构建,则pngcairopngcairo终端将无法使用,您将收到该消息

  

未知或模糊的终端类型;只需输入终端'列表

尝试将您设置为其中一个终端时。执行epscairo时,它只显示编译构建的终端。

Gnuplot 5 支持支持pngcairo,它只需要用它构建。你是OSX并安装了自制软件吗?只需使用

安装cairo支持即可
set term
相关问题