Fix #2785: Legend positioning for multiple horizontal plots

This commit is contained in:
Diaga 2020-06-15 04:36:14 +05:00
parent 1c183e40e8
commit fce7c8ca44

View File

@ -590,7 +590,7 @@ function gr_legend_pos(sp::Subplot, w, h, viewport_plotarea)
xpos = viewport_plotarea[1] + 0.11 xpos = viewport_plotarea[1] + 0.11
end end
else else
xpos = (viewport_plotarea[2]-viewport_plotarea[1])/2 - w/2 +.04 xpos = (viewport_plotarea[2]-viewport_plotarea[1])/2 - w/2 +.04 + viewport_plotarea[1]
end end
if occursin("top", str) if occursin("top", str)
if s == :outertop if s == :outertop