Class: Gnuplot::SPlot

Inherits:
Plot
  • Object
show all
Defined in:
lib/gnuplot.rb

Constant Summary

Constants inherited from Plot

Plot::QUOTED

Instance Attribute Summary

Attributes inherited from Plot

#arbitrary_lines, #cmd, #data, #io, #sets

Instance Method Summary collapse

Methods inherited from Plot

#<<, #[], #add_data, #method_missing, #plot!, #set

Constructor Details

#initialize(io = nil, cmd = 'splot') ⇒ SPlot

Returns a new instance of SPlot.



199
200
201
# File 'lib/gnuplot.rb', line 199

def initialize(io = nil, cmd = 'splot')
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Gnuplot::Plot

Instance Method Details

#to_gplot(io = io) ⇒ Object

Sends the GNUPLOT data and commands to io.



204
205
206
# File 'lib/gnuplot.rb', line 204

def to_gplot(io = io)
  to_plot(io) { |ds| ds.to_gsplot(io) }
end