From 34c6c76cb8531ce466416559d97d450b579bf980 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Wed, 28 Jul 2021 18:02:41 +0200 Subject: [PATCH] Gaston: fix lens example --- src/backends/gaston.jl | 7 ++++++- src/examples.jl | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/backends/gaston.jl b/src/backends/gaston.jl index 3ba3bbb6..815ad74d 100644 --- a/src/backends/gaston.jl +++ b/src/backends/gaston.jl @@ -23,7 +23,12 @@ function _before_layout_calcs(plt::Plot{GastonBackend}) # Initialize all the subplots first plt.o.subplots = G.SubPlot[] - n, sps = gaston_get_subplots(plt, 0, plt.layout) + n1, sps = gaston_get_subplots(plt, 0, plt.layout, :inset_subplots) + gaston_init_subplots(plt, sps) + + n2, sps = gaston_get_subplots(plt, 0, plt.layout, :subplots) + + n = n1 + n2 if n != length(plt.subplots) @error "Gaston: $n != $(length(plt.subplots))" end diff --git a/src/examples.jl b/src/examples.jl index 4cc224f6..b273a3f3 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -1252,7 +1252,6 @@ _backend_skips = Dict( 30, # uses StatsPlots, deprecated ? 31, # animations 38, # TODO: support histogram2d - 40, # layout issue 47, # TODO: support mesh3d 48, # TODO: vector of shapes, ... 49, # TODO: support polar