|
From: Christoph B. <us...@be...> - 2013-03-06 09:02:30
|
Hi,
Hi,
Am 05.03.2013 22:04, schrieb Sylwester Arabas:
>
> 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.
you can use the 'name' option of the svg terminal:
filename = system("date +%X | tr : _")
set term svg name filename
set view map
set output filename.".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
I replaced the : by _ in the filename, because 'name' takes only
alphanumeric characters and _. (Don't know why)
Christoph
|