diff options
author | knu <knu@FreeBSD.org> | 2001-02-02 00:18:07 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-02-02 00:18:07 +0800 |
commit | 9db984a4f5fa620ed79b27b15c71f6215e700280 (patch) | |
tree | 981101816f4489116ef6f253496d1f676d074f30 /math/ruby-gnuplot/pkg-descr | |
parent | e4b7f96093d4427a2cab602ac515d557b00cedd3 (diff) | |
download | freebsd-ports-gnome-9db984a4f5fa620ed79b27b15c71f6215e700280.tar.gz freebsd-ports-gnome-9db984a4f5fa620ed79b27b15c71f6215e700280.tar.zst freebsd-ports-gnome-9db984a4f5fa620ed79b27b15c71f6215e700280.zip |
Add ruby-gnuplot, a pipe-based interface to the gnuplot package for
Ruby.
Diffstat (limited to 'math/ruby-gnuplot/pkg-descr')
-rw-r--r-- | math/ruby-gnuplot/pkg-descr | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/math/ruby-gnuplot/pkg-descr b/math/ruby-gnuplot/pkg-descr new file mode 100644 index 000000000000..7a18448c9478 --- /dev/null +++ b/math/ruby-gnuplot/pkg-descr @@ -0,0 +1,24 @@ +Ruby/Gnuplot is a pipe-based interface to the gnuplot package. +Provides the full capabilities of the gnuplot package to Ruby +programs. Inspired by the Python Gnuplot package that works on the +same principle. Here's an example usage of Ruby/Gnuplot: + + require 'narray' + require 'gplot/Gnuplot' + + x = NArray.sfloat(100).indgen! + y = x.collect { |i| i*i } + + plot = Plot.new () + + plot.setTitle ("Demo 1"); + plot.setXlabel ("X"); + plot.setYlabel ("X^2"); + + ds = DataSet.new (y, {"with"=> "lines", "title"=>"Data"}) + ds.setGrid (x) + + plot.draw ( ds ) + +Author: Gordon Miller <gmiller@bittwiddlers.com> +WWW: http://physci.gmu.edu/~gmiller/gnuplot/ |