Account for adding dy to ymax in legend pos

This commit is contained in:
Diaga 2020-07-21 13:28:04 +05:00
parent cef0a55870
commit be9c8c3bb3

View File

@ -600,7 +600,7 @@ function gr_legend_pos(sp::Subplot, w, h, viewport_plotarea)
if s == :outertop if s == :outertop
ypos = viewport_plotarea[4] + y_legend_offset + legendh + xmirror * gr_axis_height(sp, sp[:xaxis]) ypos = viewport_plotarea[4] + y_legend_offset + legendh + xmirror * gr_axis_height(sp, sp[:xaxis])
else else
ypos = viewport_plotarea[4] - y_legend_offset ypos = viewport_plotarea[4] - y_legend_offset - legend_dy
end end
elseif occursin("bottom", str) elseif occursin("bottom", str)
if s == :outerbottom if s == :outerbottom