Gadfly.jl
Gadfly.jl copied to clipboard
PDF with Cairo Overlapping Legend with :top position.
Using Julia 4.6 with Cairo in order to save a plot to disk as a pdf. When the legend is on the right there is no problem, but if placed on top, the legend symbols and text overlap within columns.
Could this be a dup of #688? In that instance the solutions was to make sure that Fontconfig
is installed and the precompilation cache updated.
There is more to this issue than just Fontconfig
(see also discussion in https://github.com/GiovineItalia/Gadfly.jl/issues/688#issuecomment-324192928).
In this line the sum should be entry_height + xpad
. The key column width should include (a hypothetical square around the swatch) + (text label width). The calculated column width is too short, hence the text overlaps with the next column.