lib/ctioga2/graphics/legends/area.rb in ctioga2-0.12 vs lib/ctioga2/graphics/legends/area.rb in ctioga2-0.13
- old
+ new
@@ -146,13 +146,13 @@
# the text and the legend.
def enlarged_page_size(t, container, width, height)
w, h = size(t, container)
case @legend_type
when :left, :right
- return [width + t.convert_figure_to_output_dx(w)/10,
+ return [width + t.convert_figure_to_output_dx(w)/t.scaling_factor,
height]
when :top, :bottom
- return [width, height + t.convert_figure_to_output_dy(h)/10]
+ return [width, height + t.convert_figure_to_output_dy(h)/t.scaling_factor]
when :inside
return [width, height]
end
raise "Unknown type: #{@legend_type}"
end