Re:Guff – A plot device
by herge on Tuesday September 15, 2015 @04:22PM
(#10222915)
Guff can be used from the command line in a pipe?
[ Parent
| on HN ]
Re:Guff – A plot device
by c3RlcGhlbnI_ on Tuesday September 15, 2015 @05:04PM
(#10223196)
Apparently so can gnuplot, however the syntax is really awful.
awk 'BEGIN{ for(x=-5;x<6.5;x+=0.1){printf("%s\t%f\n", x, sin(x))} }' \
| gnuplot -p -e "set term dumb size 89,30 aspect 1;plot '<cat'"
Gnuplot really isn't made for that kind of usage, so guff does fill a valuable niche. Though you could also just write a wrapper around gnuplot with an interface that works better for command line usage(this probably already exists).
Re:Guff – A plot device
by michaelmior on Tuesday September 15, 2015 @05:03PM
(#10223190)
You could accomplish this in gnuplot, but guff does have some nice defaults that don't require you to write a script before you do the plotting.