Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gnuplot : plot pipe output

Tags:

pipe

gnuplot

I have the output a pipe secuence

command_a | command_b | ... | command_n 

the output is a sequence a number

4.2
-1
...
0.2

I can use gnuplot to plot this numbers ? (added gnuplot to pipe sequence )

like image 728
JuanPablo Avatar asked Apr 22 '26 22:04

JuanPablo


1 Answers

Did you try with the following?

plot "< command_a | command_b | ... | command_n"

concrete example:

plot "< awk '{a[$1]++}END{for(i in a){print i,a[i]}}' datafile |sort -nk1"

it works for me (tested with gnuplot 4.2 and 5.0 on a linux system).

like image 75
Giannis Avatar answered Apr 25 '26 03:04

Giannis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!