lib/rubyplot/artist/legend_box.rb
# Ratio of total height of legend box that is the top margin.
Ratio of total height of legend box that is the top margin.
Ratio of total height of legend box that is the top margin .
def configure_legends
        @axes.plots.each_with_index do |plot, count|
          next unless plot.label != ''      
          @legends << Rubyplot::Artist::Legend.new(
            self,
            @axes,
            text: plot.label,
            color: plot.color,
            abs_x: @abs_x + left_margin,
            abs_y: @abs_y + count * per_legend_height + bottom_margin,
          )
        end
      end
def configure_legends @axes . plots . each_with_index do | plot , count | next unless plot . label != '' @legends << Rubyplot :: Artist :: Legend . new ( self , @axes , text : plot . label , color : plot . color , abs_x : @abs_x + left_margin , abs_y : @abs_y + count * per_legend_height + bottom_margin , ) end end
Ratio of total height of legend box that is the top margin.
Ratio of total height of legend box that is the top margin .