1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/math/ruby-gnuplot/pkg-descr
Sunpoet Po-Chuan Hsieh fdd462485d - Remove Author line
2013-08-29 18:06:47 +00:00

24 lines
593 B
Plaintext

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 )
WWW: http://physci.gmu.edu/~gmiller/gnuplot/