如何在 Gnuplot 中修复 "Cannot open load file"?

How to fix "Cannot open load file" in Gnuplot?

我有 Gnuplot 4.6.6-2,过去几周一直在使用它。一切都很好。

我的程序文件名为 pl.gp,非常简单。到现在为止一切正常。无论出于何种原因发生这种情况:

gnuplot> load "pl.gp"
         Unable to load file 'pl.gp'
         util.c: No such file or directory.

我删除了 gnuplot 和 gnuplot-x11 然后重新安装它们,但问题仍然存在。

我该如何解决这个问题?

(代表OP发表).

@Maji 发表的评论让我意识到我的错误。我在其中一个终端的错误目录中 windows.

我现在在我的主目录中有一个 bash 脚本,以确保我不再这样做。它被命名为 gp:

cd /home/pi/python
gnuplot

当然,必须这样做才能让它发挥作用:

chmod +x gp

要运行它,在一个新的window中,我只需输入:

./gp

还在 python 目录中制作了一个副本,因此它可以在任一位置工作 - 因为我使用了完全限定的目录名称。

我想我可以将它复制到 /usr/sbin 所以我只需要输入

 gp

使用 gnuplot 从任何地方到正确的地方..