Version 6.0 patchlevel 3; Windows 10.
set loadpath 'C:\myGnuplots' to have all my saved <...>.gp and associated <>.dat files reside in C:\myGnuplots. With a data file Data.dat resident in C:\myGnuplots, plot 'Data.dat' u 1:2 with linespoints successfully executes. Subsequent save 'Data.gp' deposits the 'Data.gp' file in C:\myGnuplots. However, an attempt to regenerate the plot with load 'Data.gp' fails due to data missing. Interestingly enough, if I deposit the Data.dat file into ...\gnuplot\demo the load 'Data.gp' is successful. Tells me that my path to C:\myGnuplots gets lost in the save command somehow.
Diff:
Diff:
Is there no "set loadpath" command at all in your save file, or is there a "set loadpath" command but it contains an incorrect path? It works under linux, but I don't have a Windows machine to test on, so I don't know if there is some Windows-specific problem with the save command.
I use
set loadpath 'C:\myGnuplots'via the access toEdit gnuplot.inisupplied bygnuplot. What works:(1) plotting:
plot 'Data.dat' u 1:2 with linespointssuccessfully plots forData.datresident inC:\myGnuplots, not path needed.(2)
save '<filename>.gp'places<filename>.gpin theC:\myGnuplotsfolder, again, no path needed.However,
load '<filename>.gp'cannot find the data file. But to my surprise I found that If I now copyData.datintoc:\Program Files\gnuplot\demoloading will regenerate the plot. Evidently the application setsGNUPLOT_LIB=C:\Program Files\gnuplot\demo;C:\Program Files\gnuplot\demo\games;C:\Program Files\gnuplot\share.First question: is there a 'set loadpath' command in the file
<filename>.gpthat you saved?Second question: When you later issue the
load '<filename>.gpcommand and it fails, is that in the same gnuplot session as you were in when you originally saved it? If not, is the new gnuplot session being run from the same user directory as original session? What does the new (failing) session report forshow loadpath?Answer to question 1: yes. The file contains
set loadpath 'C:\myGnuplots'.Anser to question 2: I
saveed andloaded in the same gnuplot session.