gnuplot命令行中的Umlauts [英] Umlauts in gnuplot command line

查看:68
本文介绍了gnuplot命令行中的Umlauts的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在gnuplot中绘制表面数据(我是gnuplot的新手,但在文档中或通过谷歌搜索都没有找到有效的方法)。首先以 Splot heightfield.dat 正常工作。

I want to plot surface data in gnuplot (I'm new with gnuplot and found nothing in the docs or via google that worked). It works pretty ok for the beginning with Splot "heightfield.dat".

我的问题是路径到文件。它包含Umlauts(包含Ü)。我无法使用 cd 进入此文件夹,也无法使用这样的路径进行绘图。当然,我只是将Ü更改为U才能工作,但这有点脏。

The problem I have is the path to the file. It contains Umlauts (contains a Ü). I can not change into this folder with cd or plot with a path like this. Of course I just changed the Ü to a U to work, but this is kind of a dirty hack.

问题是我什至无法输入。当我键入Ü时,它将替换为 \U + FFC3 。我试图设置编码utf8 和其他代码,但是没有任何效果。

The problem is that I can not even type it. When I type Ü it is replaced with \U+FFC3. I tried to set encoding utf8 and others, but nothing worked. It seems only affect the plots and diagrams.

因此,我希望能够尽可能自然地在gnuplot命令行中输入变音符号。有解决方案吗?

So I want to be able to type umlauts in the gnuplot command line as naturally as possible. Is there a solution to this?

我的系统是Ubuntu 16.04,我正在使用gnuplot 5.0。

My system is Ubuntu 16.04 and I'm using gnuplot 5.0.

推荐答案

Debian Jessie也存在相同的问题。似乎它仅以交互方式出现,从文件中读取包含变音符号的命令可以正常工作。

The same problem exist on Debian Jessie. It seems that it only appears in the interactive mode, reading commands containing umlauts from a file works as expected.

根据此Ubuntu错误报告,原因是由于许可问题,gnuplot可执行文件与libedit而不是libreadline链接。在那里,他们还链接了原因通过从命令行运行gnuplot来解决此问题,方法是

According to 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 that it is legal to work around this issue by running gnuplot from the commandline as

LD_PRELOAD=/lib/x86_64-linux-gnu/libreadline.so.6 gnuplot

根据启动程序的方式,您可能希望将此命令放入别名或其他内容类似。

Depending on how you start the program you might want to put this command into an alias or something similar.

这篇关于gnuplot命令行中的Umlauts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆