我是个侏儒新手。当我在终点站运行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令我惊讶的是,没有wxt或qt。
我设法通过将它们保存在一个文件中来生成地块,例如
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发布于 2018-01-30 18:21:36
brew uninstall gnuplot
brew uninstall aquaterm
brew install gnuplot --with-aquaterm --with-qt解决了我的问题
https://stackoverflow.com/questions/48515638
复制相似问题