Method: NumPlot::Plotter#plot
- Defined in:
- lib/numplot.rb
#plot(opts = {}) ⇒ void #plot(io) ⇒ void
Plot given datasets with given parameters.
432 433 434 435 436 437 438 439 440 441 442 443 |
# File 'lib/numplot.rb', line 432 def plot(arg={}) if Hash === arg Process.open(arg.fetch(:persist, true), arg.fetch(:waiting, true), arg.fetch(:gnuplot_command, "gnuplot")) do |pr| plot_to_io(pr) end else plot_to_io(arg) end end |