Visualize stream data by using gnuplot
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
.gitignore
LICENSE.md
README.md
package.json

README.md

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