|
From: Boniforti F. <fl...@pi...> - 2009-11-23 12:57:17
|
Hello everybody, I'm still trying to make successfull use of variables in my gnuplot script, so I'm asking how it would be possible to do a "set xrange" using a variable. I have following variables: FIRST_DAY=`date -d "-$(($(date +%d)-1)) days" +%Y-%m-%d` LAST_DAY=`date -d "+1 month -$(date +%d) days" +%Y-%m-%d` What I need to achieve is to set xrange in between the above two values. Today it should give: set xrange = [2009-11-01:2009-11-30] I tried with set xrange = [FIRST_DAY:LAST_DAY] but it doesn't work. Any help will be appreciated! Thanks, Flavio Boniforti PIRAMIDE INFORMATICA SAGL Via Ballerini 21 6600 Locarno Switzerland Phone: +41 91 751 68 81 Fax: +41 91 751 69 14 URL: http://www.piramide.ch E-mail: fl...@pi... |