【问题标题】:GNUplot: Missing interactive terminals [duplicate]GNUplot:缺少交互式终端[重复]
【发布时间】:2018-01-30 06:58:29
【问题描述】:

我是一个 gnuplot 新手。当我在终端中运行 gnuplot 时,我得到了

$gnuplot
    G N U P L O T
    Version 5.2 patchlevel 2    last modified 2017-11-15 

    Copyright (C) 1986-1993, 1998, 2004, 2007-2017
    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 is now 'unknown'

原来如此

gnuplot> set term

Available terminal types:
           canvas  HTML Canvas object
              cgm  Computer Graphics Metafile
          context  ConTeXt with MetaFun (for PDF documents)
          domterm  DomTerm terminal emulator with embedded SVG
             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
             hpgl  HP7475 and relatives [number of pens] [eject]
             jpeg  JPEG images using libgd and TrueType fonts
            latex  LaTeX picture environment
              lua  Lua generic terminal driver
               mf  Metafont plotting standard
               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)
          sixelgd  sixel using libgd and TrueType fonts
              svg  W3C Scalable Vector Graphics
          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 canvas widget
             tpic  TPIC -- LaTeX picture environment with tpic \specials
          unknown  Unknown terminal type - not a plotting device
            vttek  VT-like tek40xx terminal emulator
            xterm  Xterm Tektronix 4014 Mode

令我惊讶的是没有wxtqt

我设法通过将它们保存在一个文件中来生成图,例如

set term png
set out "test.png"
plot sin(x)

但我无法在新的终端窗口中打开绘图。在R 我可以做到

$r
> plot(1:10)

我在一个新的终端窗口中打开了情节。

如何让我的绘图直接显示在新的终端窗口上?


我在

ProductName:    Mac OS X
ProductVersion: 10.13.2
BuildVersion:   17C88

我的 Xcode 版本是

Xcode 9.2
Build version 9C40b

【问题讨论】:

  • 你是如何在你的 Mac 上安装 gnuplot 的?您似乎缺少 qt、wxt 或 x11 等交互式终端。
  • @user8153 使用自制软件。 brew install gnupot
  • brew install gnuplot --with-qt, stackoverflow.com/q/32421713/2604213
  • @Christoph 谢谢我刚刚想通了。我将其发布为答案。

标签: qt plot graph terminal gnuplot


【解决方案1】:
brew uninstall gnuplot
brew uninstall aquaterm
brew install gnuplot --with-aquaterm --with-qt

解决了我的问题

【讨论】:

    猜你喜欢
    • 2014-05-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-23
    相关资源
    最近更新 更多