user margin should override
This commit is contained in:
parent
b23c620d77
commit
f9d9cba5ae
@ -780,10 +780,10 @@ function _update_min_padding!(sp::Subplot{GRBackend})
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
# Add margin given by the user
|
# Add margin given by the user
|
||||||
leftpad = 2mm + sp[:left_margin]
|
leftpad = sp[:left_margin] == :match ? 2mm : sp[:left_margin]
|
||||||
toppad = 2mm + sp[:top_margin]
|
toppad = sp[:top_margin] == :match ? 2mm : sp[:top_margin]
|
||||||
rightpad = 2mm + sp[:right_margin]
|
rightpad = sp[:right_margin] == :match ? 2mm : sp[:right_margin]
|
||||||
bottompad = 2mm + sp[:bottom_margin]
|
bottompad = sp[:bottom_margin] == :match ? 2mm : sp[:bottom_margin]
|
||||||
# Add margin for title
|
# Add margin for title
|
||||||
if sp[:title] != ""
|
if sp[:title] != ""
|
||||||
gr_set_font(titlefont(sp), sp)
|
gr_set_font(titlefont(sp), sp)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user