大佬教程收集整理的这篇文章主要介绍了linux – 使用Gnuplot时缺少终端“png”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
$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
任何人都可以帮助我吗?谢谢!!!
@H_419_4@
$sudo apt-get install libgd2-dev
然后安装gnuplot并检查png终端是否存在:
gnuplot> set terminal Available terminal types: ... gif GIF images using libgd and TrueType fonts ... jpeg JPEG images using libgd and TrueType fonts ... png PNG images using libgd and TrueType fonts ...@H_419_4@ @H_419_4@
以上是大佬教程为你收集整理的linux – 使用Gnuplot时缺少终端“png”全部内容,希望文章能够帮你解决linux – 使用Gnuplot时缺少终端“png”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。