Class: Gnuplot::SPlot
Constant Summary
Constants inherited from Plot
Instance Attribute Summary
Attributes inherited from Plot
#arbitrary_lines, #cmd, #data, #io, #sets
Instance Method Summary collapse
-
#initialize(io = nil, cmd = 'splot') ⇒ SPlot
constructor
A new instance of SPlot.
-
#to_gplot(io = io) ⇒ Object
Sends the GNUPLOT data and commands to
io
.
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 |