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

Instance Method Summary collapse

Methods inherited from Plot

#[], #add_data, #method_missing, #set, #store_datasets, #unset

Constructor Details

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

Returns a new instance of SPlot.



180
181
182
# File 'lib/gnuplot.rb', line 180

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



184
185
186
187
188
189
# File 'lib/gnuplot.rb', line 184

def to_gplot (io = "")
  @settings.each do |setting|
      io << setting.map(&:to_s).join(" ") << "\n"
  end
  io
end