gnuplot-streaming
v0.1.1
Published
Visualize stream data by using gnuplot
Downloads
3
Readme
gnuplot-streaming
Visualize stream data by using gnuplot
Features
- Can plot stream data from
stdin
- Can plot a log file
Usage
Install
Install this using npm (we assume you have pre-installed node.js), and install gnuplot.
# 'sudo' may be required in some environments.
npm install -g gnuplot-streaming
Command Line Tool
There are some command line options used in gnuplot
. sgnuplot --help
provides information about the options.
1. Plot Stream Data from stdin
To plot data from stdin
, run:
foo.sh | sgnuplot -
Please use Ctrl-c
to finish sgnuplot
.
Example: plot y=x
foo() {
for i in {1..20}; do
echo -e $i"\t"$i
sleep 0.1
done
}
foo | sgnuplot -
2. Plot a Log File
To plot a log file, run:
sgnuplot bar.log
Please use Ctrl-c
to finish sgnuplot
.
Example: plot the file
echo 0 0 > bar.log
sgnuplot bar.log &
sleep 5
echo 1 1 >> bar.log
Node.js
TODO
Environment
I tested this generator only in Linux, but I think that it works in OS X.
License
MIT © Mikami Hiroaki