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, #sets

Instance Method Summary collapse

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.



162
163
164
# File 'lib/gnuplot.rb', line 162

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



166
167
168
169
170
# File 'lib/gnuplot.rb', line 166

def to_gplot (io = "")
  @sets.each { |var, val| io << "set #{var} #{val}\n" }

  io
end