lib/rubyplot/artist/plot/multi_bars.rb
# The max. width that each bar can occupy.
The max. width that each bar can occupy.
The max . width that each bar can occupy .
def configure_plot_geometry_data!
          @num_max_slots = @bar_plots.map(&:num_bars).max
          @max_slot_width = (@x_max - @x_min) / @num_max_slots.to_f
          @spacing_ratio = @bar_plots[0].spacing_ratio
          @padding = @spacing_ratio * @max_slot_width
          @max_bars_width = @max_slot_width - @padding
          @bars_per_slot = @bar_plots.size
          @bar_plots.each_with_index do |bar, index|
            set_bar_dims bar, index
          end
        end
def configure_plot_geometry_data! @num_max_slots = @bar_plots . map ( & :num_bars ) . max @max_slot_width = ( @x_max - @x_min ) / @num_max_slots . to_f @spacing_ratio = @bar_plots [ 0 ] . spacing_ratio @padding = @spacing_ratio * @max_slot_width @max_bars_width = @max_slot_width - @padding @bars_per_slot = @bar_plots . size @bar_plots . each_with_index do | bar , index | set_bar_dims bar , index end end
The max.
The max .
# FIXME: figure out a way to specify inter-box space somehow.