【问题标题】:Can't find x11 terminal in gnuplot Octave on Mac OS在 Mac OS 上的 gnuplot Octave 中找不到 x11 终端
【发布时间】:2014-09-03 11:17:43
【问题描述】:

我正在运行 Mac OS Mavericks 10.9.4。

通过 gnuplot 4.6 附带的 Homebrew 安装 Octave 3.8.1

已安装 XQuartz 2.7.6。

完成后我重新启动了我的电脑。

为了在 octave-cli 中绘图,每个人都说我应该只“设置终端 x11”但是当我在 gnuplot 中运行“设置终端”时,我什至没有列出 x11

当然 octave-cli 会抱怨我的终端是未知的。

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

我做错了什么?我该如何调试这种情况?

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

【问题讨论】:

    标签: macos terminal gnuplot octave x11


    【解决方案1】:

    我找到了答案here。基本上gnuplot需要重新安装为:

    brew reinstall gnuplot --with-x11
    

    This page 还有助于解决在 Mavericks 上安装 Octave 的问题。

    【讨论】:

    • 它不适用于 el-capitan。我不断收到 SHA256 不匹配错误。是的,我已经更新和升级了 brew。有什么建议吗?
    • 原来,Sourceforge 出了问题:|
    • 太棒了,谢谢。只是一个小更新: brew uninstall gnuplot --ignore-dependencies
    【解决方案2】:

    在 El Capitan 上显示错误。所以这就是你要做的:

    1. 先安装 Xquartz...
    2. brew reinstall gnuplot --with-qt
    3. 从应用程序而不是“终端”打开“Xquartz”。
    4. gnuplot
    5. gnuplot > `set terminal xterm 6. plot sin(x)

    【讨论】:

      【解决方案3】:

      您至少有三个选择:

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

      与选项 1 相比,选项 3 的绘图质量要好得多。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-06-08
        • 2012-12-28
        • 2015-08-28
        相关资源
        最近更新 更多