Fix #2785: Legend positioning for multiple horizontal plots
This commit is contained in:
parent
1c183e40e8
commit
fce7c8ca44
@ -590,7 +590,7 @@ function gr_legend_pos(sp::Subplot, w, h, viewport_plotarea)
|
||||
xpos = viewport_plotarea[1] + 0.11
|
||||
end
|
||||
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
|
||||
if occursin("top", str)
|
||||
if s == :outertop
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user