Class: Gnuplot::SPlot
Constant Summary
Constants inherited from Plot
Instance Attribute Summary
Attributes inherited from Plot
#arbitrary_lines, #cmd, #data, #sets
Instance Method Summary collapse
-
#initialize(io = nil, cmd = "splot") ⇒ SPlot
constructor
A new instance of SPlot.
- #to_gplot(io = "") ⇒ Object
Methods inherited from Plot
#[], #add_data, #method_missing, #set, #store_datasets
Constructor Details
#initialize(io = nil, cmd = "splot") ⇒ SPlot
Returns a new instance of SPlot.
169 170 171 |
# File 'lib/gnuplot.rb', line 169 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 = "") ⇒ Object
173 174 175 176 177 |
# File 'lib/gnuplot.rb', line 173 def to_gplot (io = "") @sets.each { |var, val| io << "set #{var} #{val}\n" } io end |