sách gpt4 ai đã đi

thiết bị đầu cuối gnuplot tikz

In lại 作者:行者123 更新时间:2023-12-03 23:17:56 29 4
mua khóa gpt4 Nike

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

我有工作 tikz 的 latex 。现在我从 http://www.lua.org/ 安装了 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)
chồng chất

gnuplot>

我也尝试从 https://github.com/mxcl/homebrew/wiki/installation 安装自制软件虽然我没有进行 Java 开发者更新 - 有必要吗?
现在 'brew install 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 时,我是否应该自己了解并安装所有这些依赖项?

1 Câu trả lời

问题是 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()))

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

关于gnuplot tikz 终端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8216473/

29 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com