respect user margins

This commit is contained in:
Simon Christ 2019-11-25 15:49:25 +01:00
parent 3272f72df0
commit 7fc7471f81

View File

@ -762,7 +762,10 @@ end
function _update_min_padding!(sp::Subplot{PGFPlotsXBackend}) function _update_min_padding!(sp::Subplot{PGFPlotsXBackend})
# TODO: make padding more intelligent # TODO: make padding more intelligent
# order: right, top, left, bottom # order: right, top, left, bottom
sp.minpad = (22mm, 12mm, 2mm, 10mm) sp.minpad = (22mm + sp[:right_margin],
12mm + sp[:top_margin],
2mm + sp[:left_margin],
10mm + sp[:bottom_margin])
end end
function _create_backend_figure(plt::Plot{PGFPlotsXBackend}) function _create_backend_figure(plt::Plot{PGFPlotsXBackend})