gnuplot 命令行中的变音符号
Umlauts in gnuplot command line
我想在 gnuplot 中绘制表面数据(我是 gnuplot 的新手,在文档中或通过 google 找不到任何有效的方法)。它在 Splot "heightfield.dat"
.
一开始工作得很好
我遇到的问题是文件的路径。它包含变音符号(包含 Ü
)。我无法使用 cd
更改此文件夹或使用这样的路径进行绘图。当然,我只是将 Ü 更改为 U 来工作,但这是一种肮脏的 hack。
问题是我什至无法打字。当我键入 Ü
时,它被替换为 \U+FFC3
。我尝试 set encoding utf8
和其他人,但没有任何效果。它似乎只影响绘图和图表。
所以我希望能够尽可能自然地在 gnuplot 命令行中键入变音符号。有解决办法吗?
我的系统是 Ubuntu 16.04,我使用的是 gnuplot 5.0。
Debian Jessie 上存在同样的问题。它似乎只出现在交互模式下,从文件中读取包含变音符号的命令按预期工作。
根据 this Ubuntu bug report the reason is that the gnuplot executable is linked against libedit instead of libreadline due to licensing issues. There they also link the reason,通过 运行 gnuplot 从命令行解决此问题是合法的
LD_PRELOAD=/lib/x86_64-linux-gnu/libreadline.so.6 gnuplot
根据您启动程序的方式,您可能希望将此命令放入别名或类似的名称中。
我想在 gnuplot 中绘制表面数据(我是 gnuplot 的新手,在文档中或通过 google 找不到任何有效的方法)。它在 Splot "heightfield.dat"
.
我遇到的问题是文件的路径。它包含变音符号(包含 Ü
)。我无法使用 cd
更改此文件夹或使用这样的路径进行绘图。当然,我只是将 Ü 更改为 U 来工作,但这是一种肮脏的 hack。
问题是我什至无法打字。当我键入 Ü
时,它被替换为 \U+FFC3
。我尝试 set encoding utf8
和其他人,但没有任何效果。它似乎只影响绘图和图表。
所以我希望能够尽可能自然地在 gnuplot 命令行中键入变音符号。有解决办法吗?
我的系统是 Ubuntu 16.04,我使用的是 gnuplot 5.0。
Debian Jessie 上存在同样的问题。它似乎只出现在交互模式下,从文件中读取包含变音符号的命令按预期工作。
根据 this Ubuntu bug report the reason is that the gnuplot executable is linked against libedit instead of libreadline due to licensing issues. There they also link the reason,通过 运行 gnuplot 从命令行解决此问题是合法的
LD_PRELOAD=/lib/x86_64-linux-gnu/libreadline.so.6 gnuplot
根据您启动程序的方式,您可能希望将此命令放入别名或类似的名称中。