Method: Rust::RBindings#plot
- Defined in:
- lib/rust/plots/core.rb
#plot(x, y = (1..x.size).to_a, **options) ⇒ Object
350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/rust/plots/core.rb', line 350 def plot(x, y=(1..x.size).to_a, **) result = Rust::Plots::ScatterPlot.new(x, y) .each do |k, v| result[k] = v end result. result.show end |