Skip to content

Commit

Permalink
set offsets to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastyBlacksmith committed Nov 16, 2024
1 parent 68a3fa8 commit 86ca191
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions PlotsBase/ext/GRExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -979,10 +979,10 @@ function PlotsBase._update_min_padding!(sp::Subplot{GRBackend})

# Add margin given by the user
padding = (
left = Ref(2mm + sp[:left_margin]),
top = Ref(2mm + sp[:top_margin]),
right = Ref(2mm + sp[:right_margin]),
bottom = Ref(2mm + sp[:bottom_margin]),
left = Ref(sp[:left_margin]),
top = Ref(sp[:top_margin]),
right = Ref(sp[:right_margin]),
bottom = Ref(sp[:bottom_margin]),
)

# Add margin for title
Expand Down
1 change: 1 addition & 0 deletions PlotsBase/ext/PGFPlotsXExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
"show background rectangle" => nothing,
)
end
push!(the_plot.options, "tight background" => nothing)

for sp plt.subplots
bb2 = bbox(sp)
Expand Down
2 changes: 1 addition & 1 deletion PlotsBase/src/plotly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function plotly_layout(plt::Plot)
w, h = plt[:size]
plotattributes_out[:width], plotattributes_out[:height] = w, h
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[]

Expand Down

0 comments on commit 86ca191

Please sign in to comment.