【文件属性】:
文件名称:gnuplotter:gnuplot 的 Ruby 包装器
文件大小:15KB
文件格式:ZIP
更新时间:2021-06-22 13:50:19
Ruby
绘图仪
Gnuplot 是一个非常强大的绘制科学数据的工具。 这是一个围绕 Gnuplot 的 Ruby 包装器,其语法紧跟 Gnuplot 的语法。
安装
首先你必须安装 Gnuplot。 按照 Gnuplot 网站上的说明进行操作:
然后安装 Ruby gem:
gem install gnuplotter
全部做完!
例子
#!/usr/bin/env ruby
require 'gnuplotter'
data1 = [
[0, 0, 0.5, 0.5],
[0, 1, -0.5, 0.5],
[1, 1, 1, 0]
]
data2 = [
[10, 10, 1.5, 1.5],
[10, 11, -1.5, 1.5],
[11, 11, 11, 10]
]
gp = GnuPlott
【文件预览】:
gnuplotter-master
----Rakefile(311B)
----test()
--------helper.rb(2KB)
--------test_gnuplotter.rb(3KB)
----LICENSE(18KB)
----gnuplotter.gemspec(794B)
----examples()
--------histogram.rb(642B)
--------lines.rb(554B)
--------heatmap.rb(505B)
----.gitignore(32B)
----lib()
--------gnuplotter.rb(7KB)
--------gnuplotter()
----README.md(1KB)