Je ne trouve pas de terminal x11 dans Gnuplot Octave sur Mac OS

J'exécute Mac OS Mavericks 10.9.4.

Octave installée 3.8.1 via Homebrew qui est venu avec gnuplot 4.6

ont XQuartz 2.7.6 installé.

j'ai redémarré mon ordinateur après que tout ait été fait.

afin de tracer dans octave-cli tout le monde déclare que je devrais juste 'mettre terminal x11' mais je n'ai même pas X11 listé quand je cours 'set terminal' dans gnuplot

bien sûr octave-cli se plaindra que mon terminal est inconnu.

octave:1> x=1;

octave:2> plot(x);

gnuplot> set terminal aqua enhanced title "Figure 1" size 560 420  font "*,6" dashlength 1

                      ^

         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

Qu'ai-je fait de mal? Comment puis-je contester cette situation?

rami@ramis-macbook:~> gnuplot 

G N U P L O T

Version 4.6 patchlevel 5    last modified February 2014

Build System: Darwin 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 'unknown'

gnuplot> set terminal



Available terminal types:

           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

              gif  GIF images using libgd and TrueType fonts

             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

             jpeg  JPEG images using libgd and TrueType fonts

            latex  LaTeX picture environment

              lua  Lua generic terminal driver

               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)

              png  PNG images using libgd and TrueType fonts

       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]]

             tikz  TeX TikZ graphics macros via the lua script driver

         tkcanvas  Tk/Tcl canvas widget [perltk] [interactive]

             tpic  TPIC -- LaTeX picture environment with tpic specials

          unknown  Unknown terminal type - not a plotting device

Press return for more:   

            vttek  VT-like tek40xx terminal emulator

            xterm  Xterm Tektronix 4014 Mode
31
demandé sur ben39 2014-07-13 13:33:33

3 réponses

j'ai trouvé la réponse ici . Fondamentalement gnuplot doit être réinstallé comme:

brew reinstall gnuplot --with-x11

cette page aide également à résoudre L'installation D'Octave sur Mavericks.

56
répondu ben39 2017-09-17 19:36:14

sur El Capitan, il y a une erreur. Donc voici ce que vous faites:

  1. installez Xquartz en premier...
  2. brew reinstall gnuplot --with-qt
  3. Ouvrir "Xquartz' à partir d'Applications et de ne PAS le "Terminal".
  4. gnuplot
  5. gnuplot > `set terminal xterm 6. plot sin (x)
1
répondu Sachindra Pandey 2017-09-17 19:33:30

vous avez au moins trois options:

  1. brew reinstall gnuplot --with-x11
  2. brew reinstall gnuplot --with-qt
  3. brew reinstall gnuplot --with-qt5

la qualité graphique des placettes est bien meilleure avec l'option 3 qu'avec l'option 1.

0
répondu Admia 2017-09-17 19:34:26