SciRuby/gnuplotrb

View on GitHub
examples/plot_points/plot.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'gnuplotrb'
include GnuplotRB

x = (0..5).to_a
y = x.map {|xx| xx*xx }
points = [x, y]

plot = Plot.new([points, with: 'points', title: 'Points'])

plot.to_png('./gnuplot_gem.png', size: [600, 600])