From: Tait <gnu...@t4...> - 2011-10-03 21:52:37
|
The original message never made it to the list (or if it did, my system ate it as spam). Gnuplot will read data files from the path you specify, or its current working directory if not specified, just like any other program. If you haven't configured the shortcut or gnuplot.ini differently, on Windows, the CWD will be the directory where the binary lives. You can change this by creating a shortcut, and altering the starting directory under properties. Or you can simply specify the entire path to your data file(s), e.g. plot "d:/software/path with spaces/file.dat" Or you can change gnuplot's CWD before plotting, with the cd command, e.g.: cd "d:/software/data" plot "file.dat" Note that if you're using backslashes in your path names, you need to either use non-interpolating single quotes, like 'c:\temp\path with spaces\data.dat' or you need to escape the backslashes, as otherwise interpolation will treat them as an escape sequence, like "c:\\temp\\path to\\data.dat". For an interpolating, double-quoted string like "c:\temp" the "\t" will be converted to a tab character. Matthias_D <d00...@nt...> said (on 2011/10/02): > I am also quite new to GNUplot, but I put the datafiles into the same > directory > as the program gnuplot.exe. Otherwise you have to set the path of the file > (I don't know how). > If you set the path, it maybe should not contain spaces, this is a linux > manner. > > In my case the path is: D:\Software\gp443win32\gnuplot\binary\ > > Put the files here, than it should work. > > Lboro B wrote: > > Hi, > > > > I have just installed gnuplot 4.0, running on Windows 7. I have been > > trying some of the tutorials for plotting from a .dat file but I > > constantly get the following error: can't read data file "filename.dat" > > > > I have no idea what I am doing wrong here. I create the .dat file in > > notepad and have it saved on my desktop. Is there a specific folder I > > should save the .dat file in? > > > > Hope someone can help with this. > > > > Thanks |