Hello,
(sorry my english is not very good)
I'm working for French Research and at this time we have to flight
around volcanic ash from Eyjafjöll.
The soft of one of our probe can not display cumulative data but for our
security we have to see class of particle cumulate on 10'.
So I would like to parse file of its probe at real time and pipe data to
gnuplot.
This works from files (very well and simplest ! thanks for this very
powerfull soft :-) ) :
gnuplot -p veryshort.gnu
with files :
_veryshort.gnu_ :
set boxwidth 0.9 relative ;
set style data histograms ;
set style fill solid 0.30 border -1 ;
set style histogram columnstacked ;
plot for [i=2:5] "pacs.3.dat" using i title columnhead ;
pause -1 ;
and _pacs.3.dat_ :
t .1 .2 .3 .4 .5
1 2 3 4 5
2 10 10 10 10
3 2 20 20 20
4 4 42 43 44
5 1 52 53 54
6 6 62 63 64
7 1 72 73 74
So now, I would like to do something like :
send_data_RT | gnuplot -p veryshort.gnu
with files :
_veryshort.gnu_ :
set boxwidth 0.9 relative ;
set style data histograms ;
set style fill solid 0.30 border -1 ;
set style histogram columnstacked ;
plot for [i=2:5] "-" using i title columnhead ;
pause -1 ;
_and send_data_RT_ who send something like :
t .1 .2 .3 .4 .5 e
1 2 3 4 5 e
2 10 10 10 10 e
3 2 20 20 20 e
4 4 42 43 44 e
5 1 52 53 54 e
6 6 62 63 64 e
7 1 72 73 74 e
but I don't know how to do that...
Please, can you help me ?
Thanks,
Sylvie
G N U P L O T
Version 4.4 patchlevel 0
last modified March 2010
System: Linux 2.6.28-18-generic
|