Reputation: 2705
I have Gnuplot 4.6.6-2, and have been working with it a lot for the past couple of weeks. All has been well.
My program file is called pl.gp and is really simple. It has worked fine until now. For whatever reason this is happening:
gnuplot> load "pl.gp"
Unable to load file 'pl.gp'
util.c: No such file or directory.
I removed gnuplot and gnuplot-x11 then reinstalled them, but the problem persists.
How can I fix this?
Upvotes: 2
Views: 13913
Reputation: 2705
I now have a bash script in my home directory to make sure I don't do this again. it is named gp:
cd /home/pi/python
gnuplot
Of course, had to do this to make it work:
chmod +x gp
To run it, in a new window I just type :
./gp
Also made a copy in the python directory so it will work in either location - because I used a full-qualified directory name.
I suppose I could copy it to /usr/sbin so all I would have to type is
gp
from anywhere to end up in the right place with gnuplot..
Upvotes: 1
Reputation: 20430
(Posted on behalf of the OP).
@Maji posted a comment which made me realize my mistake. I was in the wrong directory in one of the terminal windows.
Upvotes: 2