Gadfly.jl icon indicating copy to clipboard operation
Gadfly.jl copied to clipboard

PDF with Cairo Overlapping Legend with :top position.

Open Nosferican opened this issue 8 years ago • 2 comments

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.

normalcdf.pdf

Nosferican avatar Jun 30 '16 00:06 Nosferican

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.

mortenpi avatar Sep 27 '16 08:09 mortenpi

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.

Mattriks avatar Jan 05 '20 04:01 Mattriks