From ee98506c56e4f7b8b00694d6836b9664bce8465a Mon Sep 17 00:00:00 2001 From: t-bltg Date: Sat, 3 Jul 2021 18:28:49 +0200 Subject: [PATCH] copy plot_XXX attributes to suptitle subplot --- src/pipeline.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/pipeline.jl b/src/pipeline.jl index 77493eb3..752517db 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -291,6 +291,17 @@ function _add_plot_title!(plt) subplot = Subplot(backend(), parent = plt.layout[1, 1]) subplot.plt = plt subplot[:title] = plot_title + for sym ∈ ( + :titlefontsize, + :title_location, + :titlefontfamily, + :titlefonthalign, + :titlefontvalign, + :titlefontrotation, + :titlefontcolor, + ) + subplot[sym] = plt[Symbol("plot_" * string(sym))] + end subplot[:subplot_index] = last(plt.subplots)[:subplot_index] + 1 subplot[:framestyle] = :none plt.layout.grid[1, 1] = subplot