fix padding

This commit is contained in:
Simon Christ 2020-01-14 11:53:42 +01:00
parent a16be43188
commit 3971b19022

View File

@ -822,11 +822,11 @@ end
# to fit ticks, tick labels, guides, colorbars, etc. # to fit ticks, tick labels, guides, colorbars, etc.
function _update_min_padding!(sp::Subplot{PGFPlotsXBackend}) function _update_min_padding!(sp::Subplot{PGFPlotsXBackend})
# TODO: make padding more intelligent # TODO: make padding more intelligent
# TODO: currently padding does not apply # TODO: how to include margins properly?
sp.minpad = (50mm + sp[:left_margin], # sp.minpad = (50mm + sp[:left_margin],
0mm + sp[:top_margin], # 0mm + sp[:top_margin],
50mm + sp[:right_margin], # 50mm + sp[:right_margin],
0mm + sp[:bottom_margin]) # 0mm + sp[:bottom_margin])
end end
function _create_backend_figure(plt::Plot{PGFPlotsXBackend}) function _create_backend_figure(plt::Plot{PGFPlotsXBackend})