2015-07-27 3 views
1

Après la mise à niveau gnuplot de 4,6 à 5.0.1, je rencontre l'erreur suivante:pdfcairo 'type de terminal inconnu ou ambigu dans gnuplot

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 

Comment puis-je résoudre ce problème?

PS: pdfcairo Fonctionne correctement dans la version précédente (4.6).

installer le gnuplot par la commande suivante:

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

#install it: 
sudo make install 

Comme décrit dans GNUPLOT Version 5.0.1 Release Notes, le pdfcairo est inclus par défaut.

Cairo/pango/wxWidgets This set of terminals includes

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

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

+2

Vous devez installer les bibliothèques de développement et les en-têtes respectifs lors de la construction de gnuplot à partir de la source. – Christoph

+0

@Christoph, merci pour votre rappel. Je le fais. SVP vérifiez la réponse. – SparkAndShine

Répondre

3

Je le fixe avec le rappel de @Christoph.

Pour résoudre ce problème, installez les bibliothèques de dépendance pour terminaux à base caire- par la commande follwoing:

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

Et puis compiler gnuplot nouveau:

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

#install it: 
sudo make install 

Maintenant, tout va bien . Profitez-en :-)

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: