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

"test.gnu", line 1: Unrecognized option. See 'help set'.

2,125 views
Skip to first unread message

Hongyi Zhao

unread,
Jul 21, 2011, 11:21:01 PM7/21/11
to
Hi all,

I get the following error:

------
$ gnuplot test.gnu

set data style lines
^
"test.gnu", line 1: Unrecognized option. See 'help set'.
-----------

The content of test.gnu:

------------
$ cat test.gnu
set data style lines
set format y "%.4f"
set key
set xlabel "Energy (eV) " 0,0
set ylabel "DOS/PDOS (arb.units)" 0,0
set title " " 0,0
set terminal x11
#set terminal post color "Times-Roman" 14
#set output "dos.dat0at.ps"
plot "pdos_1.dat" u 1:2 t "total"\
, "pdos_1.dat" u 1:3 t "group 1 (loc)"\
, "pdos_2.dat" u 1:3 t "group 2 (loc)"\

pause -1
------------

The version of gnuplot in my case:

$ gnuplot --version
gnuplot 4.4 patchlevel 0


Any hints on this issue?

Regards
--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.

Hans-Bernhard Bröker

unread,
Jul 22, 2011, 3:25:34 AM7/22/11
to
On 22.07.2011 05:21, Hongyi Zhao wrote:
> $ gnuplot test.gnu
>
> set data style lines
> ^
> "test.gnu", line 1: Unrecognized option. See 'help set'.
> -----------

Your script is several versions of gnuplot out of date. You'll have to
update it to the current version's syntax. See "help set", in
particular "help set style".

Gavin Buxton

unread,
Jul 22, 2011, 8:21:06 AM7/22/11
to
set style data lines?

They changed this a while back and I still get confused ;-)

0 new messages