Method: RedPlot::Plotter#draw

Defined in:
lib/redplot.rb

#drawObject

main client method to draw data happens in 3 steps:

1) sends the header args to gnuplot
2) sends the plot command
3) sends the data one block at a time


122
123
124
125
126
127
128
# File 'lib/redplot.rb', line 122

def draw
  start
  @proc.puts @header
  @proc.puts format_command( @command, @todraw.options )
  @todraw.callbacks.each { |block|  @proc.puts format_data( block.call ) }
  self
end