Plotting data from a file

  • Follow


Hi,

I'm using gnuplot 4.4.0 on OS X 10.6.2 and am trying to plot the file
ecut.txt which looks like
#Ecut		Length		Atomisation Energy
10		0.805312626		0.165625435
15		0.794875914		0.171276982
20		0.782939689		0.173722651
25		0.775818652		0.174689776
30		0.772			0.175219486
35		0.772614854		0.175525673
40		0.772084357		0.175793694
45		0.771989336		0.176002384
50		0.771522545		0.176162818

with the command (e.g)
plot 'ecut.txt' using 1:2
and get the response
         warning: Skipping unreadable file "ecut.txt"
         No data in plot

What am I doing wrong?

Cheers.
0
Reply fantispug (1) 3/18/2010 3:49:09 AM

On Mar 18, 8:49=A0am, fantispug <fantis...@gmail.com> wrote:
> Hi,
>
> I'm using gnuplot 4.4.0 on OS X 10.6.2 and am trying to plot the file
> What am I doing wrong?
>
> Cheers.

i simply copy pasted the data you provided and found no problems at
all ... perhaps u should provide the exact file you r trying to
plot ... r u using gnuplot for the first time or has this happened
before ?

0
Reply Awhan 3/18/2010 10:46:16 AM


fantispug wrote:

> plot 'ecut.txt' using 1:2
> and get the response
>          warning: Skipping unreadable file "ecut.txt"
>          No data in plot
> 
> What am I doing wrong?

The error message is really quite clear, isn't it?  Gnuplot could not 
read the file.  Likely as not, that's because whatever program created 
the file doesn't allow other programs to open it (yet), or you're simply 
running gnuplot from a directory other than the one that file is in.
0
Reply ISO 3/18/2010 8:26:59 PM

On 2010-03-17 23:49:09 -0400, fantispug said:

> Hi,
> 
> I'm using gnuplot 4.4.0 on OS X 10.6.2 and am trying to plot the file
> ecut.txt which looks like
> #Ecut		Length		Atomisation Energy
> 10		0.805312626		0.165625435
> 15		0.794875914		0.171276982
> 20		0.782939689		0.173722651
> 25		0.775818652		0.174689776
> 30		0.772			0.175219486
> 35		0.772614854		0.175525673
> 40		0.772084357		0.175793694
> 45		0.771989336		0.176002384
> 50		0.771522545		0.176162818
> 
> with the command (e.g)
> plot 'ecut.txt' using 1:2
> and get the response
>          warning: Skipping unreadable file "ecut.txt"
>          No data in plot
> 
> What am I doing wrong?
> 
> Cheers.

Hi!

Or - in addition to what Hans-Bernhard Br�ker wrote: You might simply 
have forgotten the ".txt" at the end of the file name... I am also 
working on OS X - and whenever that error appears, I have - by some 
misclicking in the editor's save-dialog - overridden the file extension 
- and OS X won't save it, if You don't ask it to do... I would check 
for that, it is most probably the case... (if You haven't already...).

Best,
Bj�rn

0
Reply bbcda 3/19/2010 4:18:15 AM

Hey I to support 'bbcda's' point. U might be skipping the extension of
the file.

On Mar 19, 5:18=A0am, bbcda <offi...@eml.bbcda.de> wrote:
> On 2010-03-17 23:49:09 -0400, fantispug said:
>
>
>
> > Hi,
>
> > I'm using gnuplot 4.4.0 on OS X 10.6.2 and am trying to plot the file
> > ecut.txt which looks like
> > #Ecut =A0 =A0 =A0 =A0 =A0 =A0 =A0Length =A0 =A0 =A0 =A0 =A0Atomisation =
Energy
> > 10 =A0 =A0 =A0 =A0 0.805312626 =A0 =A0 =A0 =A0 =A0 =A0 0.165625435
> > 15 =A0 =A0 =A0 =A0 0.794875914 =A0 =A0 =A0 =A0 =A0 =A0 0.171276982
> > 20 =A0 =A0 =A0 =A0 0.782939689 =A0 =A0 =A0 =A0 =A0 =A0 0.173722651
> > 25 =A0 =A0 =A0 =A0 0.775818652 =A0 =A0 =A0 =A0 =A0 =A0 0.174689776
> > 30 =A0 =A0 =A0 =A0 0.772 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0.17521948=
6
> > 35 =A0 =A0 =A0 =A0 0.772614854 =A0 =A0 =A0 =A0 =A0 =A0 0.175525673
> > 40 =A0 =A0 =A0 =A0 0.772084357 =A0 =A0 =A0 =A0 =A0 =A0 0.175793694
> > 45 =A0 =A0 =A0 =A0 0.771989336 =A0 =A0 =A0 =A0 =A0 =A0 0.176002384
> > 50 =A0 =A0 =A0 =A0 0.771522545 =A0 =A0 =A0 =A0 =A0 =A0 0.176162818
>
> > with the command (e.g)
> > plot 'ecut.txt' using 1:2
> > and get the response
> > =A0 =A0 =A0 =A0 =A0warning: Skipping unreadable file "ecut.txt"
> > =A0 =A0 =A0 =A0 =A0No data in plot
>
> > What am I doing wrong?
>
> > Cheers.
>
> Hi!
>
> Or - in addition to what Hans-Bernhard Br=F6ker wrote: You might simply
> have forgotten the ".txt" at the end of the file name... I am also
> working on OS X - and whenever that error appears, I have - by some
> misclicking in the editor's save-dialog - overridden the file extension
> - and OS X won't save it, if You don't ask it to do... I would check
> for that, it is most probably the case... (if You haven't already...).
>
> Best,
> Bj=F6rn

0
Reply praveen 3/19/2010 9:41:07 AM

4 Replies
1339 Views

(page loaded in 0.066 seconds)

Similiar Articles:













7/23/2012 5:13:50 AM


Reply: