Method: GnuplotRB::Multiplot#add_plots
- Defined in:
- lib/gnuplotrb/multiplot.rb
#add_plots(*plots) ⇒ Multiplot Also known as: add_plot, <<, add
Create new Multiplot with given plots added before plot at given position. (by default it adds plot at the front).
150 151 152 153 |
# File 'lib/gnuplotrb/multiplot.rb', line 150 def add_plots(*plots) plots.unshift(0) unless plots[0].is_a?(Numeric) self.class.new(@plots.insert(*plots), ) end |