gnuplot:无法识别的终端选项

Com*_*guy 20 pdf-generation gnuplot

有谁可以告诉我为什么我得到"无法识别的终端选项"

设置输出"out.pdf"

我需要为gnuplot 4.4安装任何软件包吗?

and*_*ras 30

你有没有设置终端?命令

print GPVAL_TERMINALS
Run Code Online (Sandbox Code Playgroud)

在gnuplot中将列出所有可用的终端; 如果pdfcairo在列表中,你应该很高兴.通常在设置输出之前,您需要设置终端,例如

set terminal pdf
set output 'out.pdf'
Run Code Online (Sandbox Code Playgroud)

  • 得到它了.尝试`set terminal pdf单色实心字体'Helvetica,14'尺寸16cm,12cm`.`fname`和`fsize`不是合法的gnuplot选项.您可以在字体规范中设置字体大小; 这不是一个单独的选择.有关更多信息,您可以输入`help set terminal pdf`. (4认同)

nov*_*ice 9

好吧,我遇到了同样的问题.我用以下方法解决了这个问题home-brew.

a)首先检查可用的选项 gnuplot

brew options gnuplot
Run Code Online (Sandbox Code Playgroud)

这将产生类似于:

--with-aquaterm
    Build with AquaTerm support
--with-cairo
    Build the Cairo based terminals
--with-libcerf
    Build with libcerf support
--with-pdflib-lite
    Build with pdflib-lite support
--with-qt@5.7
    Build with qt@5.7 support
--with-test
    Verify the build with make check
--with-wxmac
    Build wxmac support. Need with-cairo to build wxt terminal
--with-x11
    Build with x11 support
--without-gd
    Build without gd based terminals
--without-lua
    Build without the lua/TikZ terminal
--HEAD
    Install HEAD version
Run Code Online (Sandbox Code Playgroud)

b)卸载gnuplot

brew uninstall gnuplot
Run Code Online (Sandbox Code Playgroud)

c)使用选项cairo重新安装

brew install gnuplot --with-cairo
Run Code Online (Sandbox Code Playgroud)

而已.然后,只需设置终端并提供输出文件.它对我有用.

set term pdf
set output 'myFile.pdf'
Run Code Online (Sandbox Code Playgroud)