Merge 246b549436b373e9af444e05af2f7f8e19794a8b into 616d72476a34c7847dfa00d74765672bf84c8abd
This commit is contained in:
commit
0e85b1817a
@ -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]
|
||||||
toppad = 2mm + sp[:top_margin]
|
toppad = sp[:top_margin]
|
||||||
rightpad = 2mm + sp[:right_margin]
|
rightpad = sp[:right_margin]
|
||||||
bottompad = 2mm + sp[:bottom_margin]
|
bottompad = 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)
|
||||||
|
|||||||
@ -105,6 +105,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
"show background rectangle" => nothing,
|
"show background rectangle" => nothing,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
push!(the_plot.options, "tight background" => nothing)
|
||||||
|
|
||||||
for sp in plt.subplots
|
for sp in plt.subplots
|
||||||
bb2 = bbox(sp)
|
bb2 = bbox(sp)
|
||||||
|
|||||||
@ -211,7 +211,7 @@ function plotly_layout(plt::Plot)
|
|||||||
w, h = plt[:size]
|
w, h = plt[:size]
|
||||||
plotattributes_out[:width], plotattributes_out[:height] = w, h
|
plotattributes_out[:width], plotattributes_out[:height] = w, h
|
||||||
plotattributes_out[:paper_bgcolor] = rgba_string(plt[:background_color_outside])
|
plotattributes_out[:paper_bgcolor] = rgba_string(plt[:background_color_outside])
|
||||||
plotattributes_out[:margin] = KW(:l => 0, :b => 20, :r => 0, :t => 20)
|
plotattributes_out[:margin] = KW(:l => 0, :b => 0, :r => 0, :t => 0)
|
||||||
|
|
||||||
plotattributes_out[:annotations] = KW[]
|
plotattributes_out[:annotations] = KW[]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user