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

Truncated x-axis tick labels with gridstack

Open brian-j-smith opened this issue 11 years ago • 2 comments
trafficstars

@dcjones and @bdeonovic - when drawing a gridstack result, x-axis tick labels can get cut off if they run past the right-hand-side of the plot region. Here's an example...

using Gadfly
using Compose

p = plot(x=[1,5000,10000], y=[1,2,3], Geom.point)

m = 3
n = 2
cs = Context[render(p) for i in 1:m, j in 1:n]

draw(SVG("temp.svg", 8inch, 8inch), gridstack(cs))

brian-j-smith avatar Jun 28 '14 02:06 brian-j-smith

This is something I need to find a more permanent solution for. In the meantime I changed Gadfly to do what it used to do: pad every plot by 5mm on every side, which fixes this in common cases.

dcjones avatar Jun 28 '14 17:06 dcjones

That's a good interim solution.

brian-j-smith avatar Jun 28 '14 18:06 brian-j-smith