|
From: Sylwester A. <sa...@ig...> - 2013-03-06 10:16:34
|
Hi Christoph
On 06/03/13 09:47, Christoph Bersch wrote:
> 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:
Thanks a lot!
Perhaps it's worth discussing it in the help section in term/svg.trm.
Also, why not make it a default behaviour? It's quite tricky to find out
why you get same plots with different data :)
> I replaced the : by _ in the filename, because 'name' takes only
> alphanumeric characters and _. (Don't know why)
While gnuplot does warn about e.g. a dot in the value of "name", it in
fact proceeds with creating the file correctly!:
gnuplot> filename = 'figure_pc_tht_0.svg'
gnuplot> set term svg dynamic name filename
Terminal type set to 'svg'
^
name must contain only alphanumerics or _
...
gnuplot> !ls *.png
...
figure_pc_tht_0.svg_image_03.png
...
Best,
Sylwester
--
http://www.igf.fuw.edu.pl/~slayoo/
|