Ruby - gnuplot on Mac

  • View
    945

  • Download
    1

Embed Size (px)

DESCRIPTION

便利なグラフ描画ツール gnuplot を Ruby から操作できる gem Gnuplot をご紹介します。 Mac 上でのインストール方法、基本的な使い方を解説しています。

Text of Ruby - gnuplot on Mac

  • 1. Ruby x gnuplot 2013-11-17

2. !Excel CUI ! Ruby 3. gnuplot 4. WHAT 5. gnuplot http://www.gnuplot.info/ !CUI 6. HOW 7. 01 8. 01 1. Ruby 2. gnuplot 3. gem gnuplot 9. 01 1. Ruby 10. 01 2. gnuplot http://www.gnuplot.info/! $ brew install gnuplot! $ gnuplot -V # $ gnuplot # > plot [-10:10] sin(x) # sinOK 11. 01 3. gem Gnuplot http://rubygems.org/gems/gnuplot! $ gem install Gnuplot! $ irb > require gnuplot # => true OK 12. 02 Hello, World! 13. 02 Hello, World! require "gnuplot"! Gnuplot.open do |gp| # 01 Gnuplot Gnuplot::Plot.new( gp ) do |plot| # 02 Plot.new plot.xrange "[-10:10]" # 03 plot.data sin OK 14. 03 15. 03 - - - CSV - 16. 17. Ruby 18. 19. gnuplot: Ruby: 20. !https://github.com/rdp/ruby_gnuplot !examples 21. Ruby 22. !Gruff x RMagic x ImageMagick https://github.com/topfunky/gruff !GoogleCharts x Google Charts http://googlecharts.rubyforge.org/ 23. !https://github.com/gh640/ruby-gnuplot-trial