|
From: Sylwester A. <sa...@ig...> - 2013-03-05 21:04:41
|
Hello,
The commands below exemplify a buggy behaviour of the svg terminal:
$ cat bug.gpi
set term svg
set view map
set output system("date +%X").".svg"
splot '-' matrix with image notitle
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 2 0 0 0 3 3 0 0
0 0 1 0 1 0 2 0 2 0 3 0 3 0 0
0 0 1 1 0 0 2 0 2 0 3 0 0 0 0
0 0 1 0 1 0 2 0 2 0 3 0 0 0 0
0 0 1 1 0 0 2 0 2 0 0 3 3 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
e
$ gnuplot bug.gpi
$ gnuplot bug.gpi
$ ls -1 *
21:55:23.svg
21:55:26.svg
bug.gpi
gp_image_01.png
The problem is that both 21:55:23.svg and 21:55:26.svg include the same
gp_image_01.png file, while the plotted data could in principle be
different in the two svg files. Changing the prefix of the png file from
gp_image_ to something like 21:55:23.svg_image_ would fix the problem.
HTH,
Thanks,
Sylwester
--
http://www.igf.fuw.edu.pl/~slayoo/
|