From 411de6976560c2047bfd86b62d6f1e65dfb05669 Mon Sep 17 00:00:00 2001 From: t-bltg <13423344+t-bltg@users.noreply.github.com> Date: Wed, 14 Jul 2021 22:01:20 +0200 Subject: [PATCH] fix plot_title for pyplot (#3642) Co-authored-by: t-bltg --- src/pipeline.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pipeline.jl b/src/pipeline.jl index 8d54b9cb..2e2c1ae9 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -295,7 +295,9 @@ function _add_plot_title!(plt) for sym ∈ filter(x -> startswith(string(x), "plot_title"), keys(_plot_defaults)) subplot[Symbol(string(sym)[length("plot_") + 1:end])] = plt[sym] end - plt[:force_minpad] = nothing, 0px, nothing, 0px + top = plt.backend isa PyPlotBackend ? nothing : 0mm + bot = 0mm + plt[:force_minpad] = nothing, top, nothing, bot subplot[:subplot_index] = last(plt.subplots)[:subplot_index] + 1 plt[:plot_titleindex] = subplot[:subplot_index] subplot[:framestyle] = :none