Update gr.jl

This commit is contained in:
Josef Heinen 2017-11-02 21:53:11 +01:00 committed by GitHub
parent f690961af2
commit b34f4141a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -413,7 +413,7 @@ function gr_viewport_from_bbox(sp::Subplot{GRBackend}, bb::BoundingBox, w, h, vi
viewport[4] = 0.5 * (vp[3] + vp[4] + extent)
end
if hascolorbar(sp)
viewport[2] -= (viewport[2] - viewport[1]) * 0.1
viewport[2] -= 0.1
end
viewport
end