You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, my attempt is not working. I think the problem is, I don't know what Dataset.new does. If this could be fixed, I would like to contribute it to the /examples.
#!/usr/bin/env ruby
require 'gnuplot'
data = [
[0, 0, 0.5, 0.5],
[0, 1, -0.5, 0.5],
[1, 1, 1, 0]
]
Gnuplot.open do |gp|
Gnuplot::Plot.new(gp) do |plot|
plot.term "dumb"
plot.output "/dev/stderr"
plot.data << Gnuplot::DataSet.new(data) do |ds|
ds.using = "1:2:3:4"
ds.with = "vectors filled head lw 3"
end
end
end
The text was updated successfully, but these errors were encountered:
However, my attempt is not working. I think the problem is, I don't know
what Dataset.new does. If this could be fixed, I would like to contribute
it to the /examples.
I would like to get this example to work using ruby_gnuplot:
http://stackoverflow.com/questions/16541040/how-do-i-use-gnuplot-to-plot-a-simple-2d-vector-arrow
However, my attempt is not working. I think the problem is, I don't know what Dataset.new does. If this could be fixed, I would like to contribute it to the /examples.
The text was updated successfully, but these errors were encountered: