← Back to team overview

sslug-teknik team mailing list archive

gnuplot - multiple line plots i en plot

 

Hi folks - jeg har en data fil der ser cirka sådan her ud:

second.usec     target  progress        event   eventname       error   errorname
0.000618        0       1       1       ZOOM_EVENT_CONNECT      0       No error
0.000625        0       2       6       ZOOM_EVENT_SEND_APDU    0       No error
0.000627        1       1       1       ZOOM_EVENT_CONNECT      0       No error
0.000629        1       2       6       ZOOM_EVENT_SEND_APDU    0       No error
0.000631        2       1       1       ZOOM_EVENT_CONNECT      0       No error
0.000633        2       2       6       ZOOM_EVENT_SEND_APDU    0       No error
0.002210        0       3       7       ZOOM_EVENT_RECV_APDU    0       No error
0.002213        0       4       6       ZOOM_EVENT_SEND_APDU    0       No error
0.002528        0       5       7       ZOOM_EVENT_RECV_APDU    0       No error
0.002532        0       6       9       ZOOM_EVENT_RECV_SEARCH  0       No error
0.002534        0       7       8       ZOOM_EVENT_RECV_RECORD  0       No error
0.003049        1       3       7       ZOOM_EVENT_RECV_APDU    0       No error
0.003052        1       4       6       ZOOM_EVENT_SEND_APDU    0       No error
0.003345        1       5       7       ZOOM_EVENT_RECV_APDU    0       No error
0.003349        1       6       9       ZOOM_EVENT_RECV_SEARCH  0       No error
0.003350        1       7       8       ZOOM_EVENT_RECV_RECORD  0       No error
0.003856        2       3       7       ZOOM_EVENT_RECV_APDU    0       No error
0.003859        2       4       6       ZOOM_EVENT_SEND_APDU    0       No error
0.004149        2       5       7       ZOOM_EVENT_RECV_APDU    0       No error
0.004152        2       6       9       ZOOM_EVENT_RECV_SEARCH  0       No error
0.004154        2       7       8       ZOOM_EVENT_RECV_RECORD  0       No error


hvor i første søjle der er en tid i sekunder/milisekunder, i anden 
en process identifier, og i tredie en progress status.

Det er nemt at plotte dem alle sammen i en x-y graph hvor x er tid, og y
er progres, ved at bruge 

plot 'out.txt' using ($1):($3) t '' with points


nu ønsker jeg at hver process opfattes som en selstændig (stigende)
funktion, der plottes med linier.

denne her duer ikke:

plot 'out.txt' using ($1):($3) t '' with lines

idet det bliver en graf med alle processer i..

så det skal være noget med 

set multiplot

Hvordan får jeg så kun en graf ad gangen for hver process ??

noget med 

if ( $2 = 3 ) plot 'out.txt' using 1:3  ??

eller findes der en group eller split  eller lignende ??



tak for hjælpen, hilsen, marc