From fc4683c1eaf4ab908947edc37894408f70f719ad Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 28 Jan 2020 22:10:43 +0100 Subject: [PATCH] add subplot --- src/recipes.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/recipes.jl b/src/recipes.jl index 41a98a33..9d7d9ebd 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -904,14 +904,26 @@ end @recipe function f(::Type{Val{:lens}}, plt::AbstractPlot) # TODO: validate input @show plt.series_list[end][:seriestype] + @show plotattributes[:inset_subplots] @show plotattributes x1, x2 = plotattributes[:x] y1, y2 = plotattributes[:y] # TODO: add subplot + for series in plt.series_list + @series begin + plotattributes = copy(series.plotattributes) + subplot := 2 + label := "" + xlims := (x1, x2) + ylims := (y1, y2) + () + end + end # TODO: add lines seriestype := :path label := "" linecolor := :lightgray + subplot := 1 @series begin plotattributes[:x] = [x2, 4] plotattributes[:y] = [y2, 10]