|
From: <pl...@pi...> - 2008-03-26 06:51:17
|
Hi,
I was wondering if there was not a gnuplot command to do this but help
date did not help.
I am trying to automatically add the date to the title of a plot.
for some reason the following does not respect the -n option and adds
newline.
datefile="date.txt";
system "echo -n 'date= \"' >".datefile." ; date '+%D'>>".datefile."\""
load datefile
title=title.date
finally got what I want with this:
datefile="date.txt";
system "today=\'date= \"\'`date '+%D'`\'\"\'; echo $today>".datefile
load datefile
If this is not just a feature I cannot find, could it be added? Gnuplot
already parses all the std date format args, it would presumably be
trivial to add.
eg
today = date("+%D");
title=title.today
Thx.
|