Class: Numo::Gnuplot::SPlotRecord

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

Instance Method Summary collapse

Methods inherited from PlotData

#data_format, #data_str

Constructor Details

#initialize(*data) ⇒ SPlotRecord

:nodoc: all



549
550
551
552
# File 'lib/numo/gnuplot.rb', line 549

def initialize(*data)
  @shape = data.last.shape
  super
end

Instance Method Details

#cmd_strObject



554
555
556
557
558
559
560
# File 'lib/numo/gnuplot.rb', line 554

def cmd_str
  if @text
    "'-'"
  else
    "'-' binary record=(#{@shape[1]},#{@shape[0]}) format='%float64' using 1:2:3"
  end
end