Compose.jl
Compose.jl copied to clipboard
Truncated x-axis tick labels with gridstack
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))
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.
That's a good interim solution.