Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Plotting data from a file

1,590 views
Skip to first unread message

fantispug

unread,
Mar 17, 2010, 11:49:09 PM3/17/10
to
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.

Awhan Patnaik

unread,
Mar 18, 2010, 6:46:16 AM3/18/10
to
On Mar 18, 8:49 am, 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 ?

Hans-Bernhard Bröker

unread,
Mar 18, 2010, 4:26:59 PM3/18/10
to
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.

bbcda

unread,
Mar 19, 2010, 12:18:15 AM3/19/10
to

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

praveen

unread,
Mar 19, 2010, 5:41:07 AM3/19/10
to
Hey I to support 'bbcda's' point. U might be skipping the extension of
the file.
0 new messages