|
From: Boniforti F. <fl...@pi...> - 2009-11-23 10:29:07
|
Hallo Hans-Bernhard, > > A) the graph should be generated *new* when the actual > month is over > > (I'd like to have different PNGs for each month); > > That's mainly between you and your data generation scripts to handle. OK, I'll go for it after I have my gnuplot script working... > > B) it should be schedulable, but I don't know how to put or pass > > variables to the plot script > > There are several approaches. The basic choice is between > parametrizing > a canned gnuplot script from the outside using environment > variables (`echo $VARIABLE` style), and modifying the script > on the fly (HERE script or piping individual commands from > another scripting language to gnuplot). Well, actually I have played a bit with setting variables inside gnuplot and trying to concatenate them. I succeeded in concatenating *string* variables: gnuplot> VAR='polti'.'-'.`date +%Y` gnuplot> print VAR polti-2009 gnuplot> VAR=VAR.'-'.`date +%m` gnuplot> print VAR polti-2009-11 I think playing with these sort of variable definitions, also will lead me to success... What do you think of this? 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... |