From 0e94e572633074d10bdb496e4bf9db89cda18b69 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Thu, 21 Nov 2019 16:52:35 +0100 Subject: [PATCH] total plot size --- src/backends/pgfplotsx.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 325d1047..267915d7 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -24,13 +24,16 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend}) the_plot = PGFPlotsX.TikzPicture() # the combination of groupplot and polaraxis is broken in pgfplots if !any( sp -> ispolar(sp), plt.subplots ) + pl_height, pl_width = plt.attr[:size] push!( the_plot, PGFPlotsX.GroupPlot( PGFPlotsX.Options( "group style" => PGFPlotsX.Options( "group size" => string(cols)*" by "*string(rows), "horizontal sep" => string(maximum(sp -> sp.minpad[1], plt.subplots)), "vertical sep" => string(maximum(sp -> sp.minpad[2], plt.subplots)), - ) + ), + "height" => pl_height > 0 ? string(pl_height)*"px" : "{}", + "width" => pl_width > 0 ? string(pl_width)*"px" : "{}", ) ) )