From 1ad74fe129bc22dafa4f0e1d7a5ba6831ebffaa7 Mon Sep 17 00:00:00 2001 From: Nicholas Bauer Date: Sun, 21 Nov 2021 19:55:09 -0500 Subject: [PATCH] Refinement to plotly, gr --- src/backends/gr.jl | 8 ++++---- src/backends/plotly.jl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backends/gr.jl b/src/backends/gr.jl index 5943f0df..fe52a895 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -780,10 +780,10 @@ function _update_min_padding!(sp::Subplot{GRBackend}) end end # Add margin given by the user - leftpad = sp[:left_margin] == :match ? 2mm : sp[:left_margin] - toppad = sp[:top_margin] == :match ? 2mm : sp[:top_margin] - rightpad = sp[:right_margin] == :match ? 2mm : sp[:right_margin] - bottompad = sp[:bottom_margin] == :match ? 2mm : sp[:bottom_margin] + leftpad = sp[:left_margin] + toppad = sp[:top_margin] + rightpad = sp[:right_margin] + bottompad = sp[:bottom_margin] # Add margin for title if sp[:title] != "" gr_set_font(titlefont(sp), sp) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index ad4ff317..191dfb8a 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -211,7 +211,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[]