lib/rubyplot/artist/figure.rb
def add_subplots!(nrows, ncols)
        @nrows = nrows
        @ncols = ncols
        @subplots = Array.new(@nrows) { Array.new(@ncols) { nil } }
      end
# Create space for subplots to be added to the figure.
#
# @param nrows [Integer] Number of rows to add.
# @param ncols [Integer] Number of cols to add.
Create space for subplots to be added to the figure.
Create space for subplots to be added to the figure .
def add_subplots!(nrows, ncols)
        @nrows = nrows
        @ncols = ncols
        @subplots = Array.new(@nrows) { Array.new(@ncols) { nil } }
      end
def add_subplots! ( nrows , ncols ) @nrows = nrows @ncols = ncols @subplots = Array . new ( @nrows ) { Array . new ( @ncols ) { nil } } end
Create space for subplots to be added to the figure.
Create space for subplots to be added to the figure .
nrows
Number of rows to add.
Number of rows to add .
ncols
Number of cols to add.
Number of cols to add .