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
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
> 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