pdfcairo gnuplot中的“​​未知或模棱两可的终端类型" [英] pdfcairo 'unknown or ambiguous terminal type' in gnuplot

查看:270
本文介绍了pdfcairo gnuplot中的“​​未知或模棱两可的终端类型"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将gnuplot从4.6升级到 5.0.1 后,我遇到以下错误:

After upgrading gnuplot from 4.6 to 5.0.1, I encounter the following error:

set terminal pdfcairo size 3.0in,2.25in font ',8'
             ^
"plot.plt", line 114: unknown or ambiguous terminal type; type just 'set terminal' for a list

我该如何解决?

PS:pdfcairo在以前的版本(4.6)中可以正常工作.

PS: pdfcairo works fine in the previous version (4.6).

我通过以下命令安装gnuplot:

I install the gnuplot by the following command:

#build it:
./configure --with-cairo 
make

#install it:
sudo make install

GNUPLOT版本5.0.1发行说明所述,默认情况下包含pdfcairo

As described in GNUPLOT Version 5.0.1 Release Notes, the pdfcairo is included by default.

Cairo/pango/wxWidgets这套终端包括

Cairo/pango/wxWidgets This set of terminals includes

pngcairo,pdfcairo,epscairo和cairolatex用于输出到文件

pngcairo, pdfcairo, epscairo, and cairolatex for output to a file

用于交互式显示的wxt如果默认情况下所有这些都将默认构建 配置脚本会找到所需的libcairo,libpango,libcairo, libwxgtk和相关的支持库要禁用这些终端,请执行以下操作:

wxt for interactive display All of these will be built by default if the configuration script finds the required libcairo, libpango, libcairo, libwxgtk, and related support libraries To disable these terminals:

./configure --without-cairo ./configure --with-cairo --disable-wxt

./configure --without-cairo ./configure --with-cairo --disable-wxt

推荐答案

我通过@Christoph的提示来修复它.

I fix it with the kind reminder of @Christoph.

要解决此问题,请通过follwoing命令为基于开罗的终端安装依赖项库:

To tackle this issue, install the dependency libraries for cairo-based terminals by the follwoing command:

sudo apt-get install libcairo2-dev
sudo apt-get install libpango1.0-dev

然后再次编译gnuplot:

And then compile gnuplot again:

#build it:
cd gnuplot-5.0.1 ; ./configure ; make

#install it:
sudo make install

现在,一切都很好.享受它:-)

Now, everything is fine. Enjoy it:-)

gnuplot> set term

Available terminal types:
       cairolatex  LaTeX picture environment using graphicx package and Cairo backend
           canvas  HTML Canvas object
              cgm  Computer Graphics Metafile
          context  ConTeXt with MetaFun (for PDF documents)
            corel  EPS format for CorelDRAW
             dumb  ascii art for anything that prints text
              dxf  dxf-file for AutoCad (default size 120x80)
            eepic  EEPIC -- extended LaTeX picture environment
              emf  Enhanced Metafile format
            emtex  LaTeX picture environment with emTeX specials
         epscairo  eps terminal based on cairo
         epslatex  LaTeX picture environment using graphicx package
              fig  FIG graphics language for XFIG graphics editor
             hpgl  HP7475 and relatives [number of pens] [eject]
            latex  LaTeX picture environment
               mf  Metafont plotting standard
               mp  MetaPost plotting standard
             pcl5  HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
         pdfcairo  pdf terminal based on cairo
         pngcairo  png terminal based on cairo
       postscript  PostScript graphics, including EPSF embedded files (*.eps)
Press return for more: 

这篇关于pdfcairo gnuplot中的“​​未知或模棱两可的终端类型"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆