Fix 2377: Legend positioning fix for multiple vertical plots

This commit is contained in:
Diaga 2020-06-15 02:27:04 +05:00
parent ebc93b6935
commit 1c183e40e8

View File

@ -605,7 +605,8 @@ function gr_legend_pos(sp::Subplot, w, h, viewport_plotarea)
ypos = viewport_plotarea[3] + h + 0.06
end
else
ypos = (viewport_plotarea[4]-viewport_plotarea[3])/2 + h/2
# Adding min y to shift legend pos to correct graph (#2377)
ypos = (viewport_plotarea[4]-viewport_plotarea[3])/2 + h/2 + viewport_plotarea[3]
end
(xpos,ypos)
end