【发布时间】:2014-05-14 00:09:21
【问题描述】:
我使用的是 Xubuntu 13.10,我通过手动编译安装了 gnuplot。但是,当我测试“情节”的功能时,它得到了一个错误:
$ python PlotSccDistr.py
set terminal png size 1000,800
^
"scc.example.plt", line 16: unknown or ambiguous terminal type; type just 'set terminal' for a list
如果我想设置终端png,但在我的列表中没有找到“png”:
$ gnuplot
G N U P L O T
Version 4.6 patchlevel 5 last modified February 2014
Build System: Linux x86_64
Copyright (C) 1986-1993, 1998, 2004, 2007-2014
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'x11'
gnuplot> set terminal
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
epslatex LaTeX picture environment using graphicx package
fig FIG graphics language for XFIG graphics editor
gpic GPIC -- Produce graphs in groff using the gpic preprocessor
hp2623A HP2623A and maybe others
hp2648 HP2648 and HP2647
hpgl HP7475 and relatives [number of pens] [eject]
imagen Imagen laser printer
latex LaTeX picture environment
mf Metafont plotting standard
mif Frame maker MIF 3.00 format
mp MetaPost plotting standard
pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
postscript PostScript graphics, including EPSF embedded files (*.eps)
pslatex LaTeX picture environment with PostScript \specials
pstex plain TeX with PostScript \specials
pstricks LaTeX picture environment with PSTricks macros
qms QMS/QUIC Laser printer (also Talaris 1200 and others)
regis REGIS graphics language
svg W3C Scalable Vector Graphics driver
tek40xx Tektronix 4010 and others; most TEK emulators
tek410x Tektronix 4106, 4107, 4109 and 420X terminals
texdraw LaTeX texdraw environment
tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]]
tkcanvas Tk/Tcl canvas widget [perltk] [interactive]
tpic TPIC -- LaTeX picture environment with tpic \specials
unknown Unknown terminal type - not a plotting device
vttek VT-like tek40xx terminal emulator
x11 X11 Window System
xlib X11 Window System (gnulib_x11 dump)
xterm Xterm Tektronix 4014 Mode
有人可以帮我吗?谢谢!!!
【问题讨论】:
-
由于“png”不在支持的终端类型列表中,看来您在编译之前将 gnuplot 构建配置为不包含 PNG 支持。如果你希望它在那里,你必须重新配置和重建以包含 PNG 支持......
-
查看编译时可以使用的标志,我认为命令是
./configure --help -
你必须安装一大堆开发包来构建带有 *cairo 和 wxt 终端的 gnuplot。在 Debian
libcairo2-dev、libpango1.0-dev、wx2.8-headers和许多其他网站上。 -
@twalberg 我重新配置并重建了几次,但错误仍然存在。
-
@andyras 谢谢,我阅读了日志文件并得到了答案。我安装了 libgd 来解决这个问题。