Class: Numo::Gnuplot::SPlotRecord
- Defined in:
- lib/numo/gnuplot.rb
Instance Method Summary collapse
- #cmd_str ⇒ Object
-
#initialize(*data) ⇒ SPlotRecord
constructor
:nodoc: all.
Methods inherited from PlotData
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_str ⇒ Object
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 |