0.1.1 • Published 9 years ago

gnuplot-streaming v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

gnuplot-streaming

Visualize stream data by using gnuplot

Features

  1. Can plot stream data from stdin
  2. 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