Class: Numo::Gnuplot::SPlotItem

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

Instance Method Summary collapse

Methods inherited from PlotItem

#<<, #cmd_str, #data_str, #empty?, #initialize, is_data, #parse_data_style, #parse_items

Constructor Details

This class inherits a constructor from Numo::Gnuplot::PlotItem

Instance Method Details

#parse_data(data) ⇒ Object

:nodoc: all



812
813
814
815
816
817
# File 'lib/numo/gnuplot.rb', line 812

def parse_data(data)
  parse_data_style(data) ||
    (data.size == 1) ?
    ImageData.new(data.first) :
    SPlotRecord.new(*data)
end