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

gnuplot svg terminal problem

250 views
Skip to first unread message

pullUrAn

unread,
Aug 22, 2007, 2:50:56 AM8/22/07
to
within the gnuplot when i created svg file using the svg terminal, the
svg file wasnt able to open using inkscape or other viewer.

example:
gnuplot> set term svg
Terminal type set to 'svg'
Options are 'size 600 480 fixed fname 'Arial' fsize 12 butt '
gnuplot> set out "test.svg"
gnuplot> plot [0:1] x**2
then when i tried to open the using mozilla test.svg, it is nt working
giving me an error
XML Parsing Error: no element found
Location: file:///home/..../test.svg
Line Number 103, Column 1:

But when i made a script using the above commands
----------------------
$emacs scriptfile.gp&
scriptfile contains:
gnuplot> set term svg
Terminal type set to 'svg'
Options are 'size 600 480 fixed fname 'Arial' fsize 12 butt '
gnuplot> set out "test.svg"
gnuplot> plot [0:1] x**2
-------------
and used gnuplot in the following way

...@..:~$ gnuplot scriptfile.gp

it indeed worked and i can open the resulted test.svg.

any explanation of what went wrong in the first case??

gnuplot version:
(G N U P L O T Version 4.2 System: debian sid/lenny Linux
2.6.17-2-686)

Thanks
Sree

Michael Hofmann

unread,
Aug 22, 2007, 3:33:37 AM8/22/07
to

> any explanation of what went wrong in the first case??

Probably, gnuplot was still runing and you missed the "unset output" command that finalizes the svg-file. The output is automatically finalized when gnuplot exits (e.g., at the end of executing a script).


Michael

pullUrAn

unread,
Aug 22, 2007, 6:31:53 AM8/22/07
to
On Aug 22, 9:33 am, "Michael Hofmann" <michael.hofm...@s2000.tu-
chemnitz.de> wrote:

> Probably, gnuplot was still runing and you missed the "unset output" command that finalizes the svg-file. The output is automatically finalized when gnuplot exits (e.g., at the end of executing a script).


thanks. yes that was the case. now the frist case indeed producing
correct svg file.
thanks again.

Sree

0 new messages