gnuplot tikz终端

gnuplot tikz终端,gnuplot,tikz,Gnuplot,Tikz,如何在Mac Os X(10.6.8)上的gnuplot中启用tikz终端 我有工作经验。现在,我从安装了lua,下载了gnuplot4.4.4,解包后运行 $ ./configure $ sudo make $ sudo make install 现在我可以设置tikz终端,但仍然存在问题 gnuplot> set terminal tikz Terminal type set to 'tikz' Options are 'color dashed' gnuplot> plot

如何在Mac Os X(10.6.8)上的gnuplot中启用tikz终端

我有工作经验。现在,我从安装了lua,下载了gnuplot4.4.4,解包后运行

$ ./configure
$ sudo make
$ sudo make install
现在我可以设置tikz终端,但仍然存在问题

gnuplot> set terminal tikz
Terminal type set to 'tikz'
Options are 'color dashed'
gnuplot> plot sin(x)
\begin{tikzpicture}[gnuplot]
         /usr/local/share/gnuplot/4.4/lua/gnuplot-tikz.lua:252: bad argument #7 to 'format' (string expected, got no value)
stack

gnuplot> 

虽然我没有进行Java开发者更新,但我也尝试从安装homebrew-这是必要的吗? 现在“brew安装gnuplot”出现了glib依赖性问题

hpek@melda:~$ brew install glib
/usr/local/Library/Homebrew/global.rb:43: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/bin/brew:74: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/Library/Homebrew/build.rb:7: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2
File already downloaded in /Users/hpek/Library/Caches/Homebrew
==> Downloading patches

curl: (22) The requested URL returned error: 404
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
/usr/bin/patch: **** Can't open patch file 001-homebrew.diff : No such file or directory
Error: Failure while executing: /usr/bin/patch -f -p0 -i 001-homebrew.diff
hpek@melda:~$ 
当我手动安装gnuplot时,我是否应该知道并自己安装所有这些依赖项?

试试:

brew update

然后再试一次。这似乎现在已经解决了。

问题在于,LUA脚本的252(或我的版本中的254)使用的格式命令的参数比需要的少。添加一个“X”作为#5参数(又称脚本修订号)可以解决这个问题

以下是我在脚本中的新代码:

gp.write(string.format("%%%% generated with GNUPLOT %sp%s (%s; terminal rev. %s, script rev. %s)\n%%%% %s\n",
      term.gp_version, term.gp_patchlevel,
      string.sub(term.lua_term_revision,7,-3),"x",
      pgf.REVISION,os.date()))

我想如果我知道在哪里可以找到脚本修订号,那就更好了。

您的系统上安装了latex和tikz吗?您是否检查了
/configure
的输出以了解它是否解释了为什么无法启用tikz终端?是的,我有带工作tikz的MacTeX。在config.log中,我只能看到这一行关于TikZ的内容。您是否尝试过在日志中搜索lua?我认为您需要安装lua及其开发头。我认为您是正确的-有16行带有lua一词,例如,
ld:library not found for-llua
。什么是lua,我从哪里得到它?我现在已经完全重写了我的问题,以反映我的进步。