Method: Gnuplot::Plot#plot!

Defined in:
lib/gnuplot.rb

#plot!(verbose = $VERBOSE, io = $stderr) ⇒ Object

Sends the data and commands to the GNUPLOT process, drawing the plot.

Prints the plot commands that are sent to the GNUPLOT process to io if verbose is true.



114
115
116
117
118
119
120
121
# File 'lib/gnuplot.rb', line 114

def plot!(verbose = $VERBOSE, io = $stderr)
  if verbose && io
    io << "Writing this to GNUPLOT:\n"
    to_gplot(io)
  end

  to_gplot
end