In want to take the outputs of two separate plot commands and inset one inside the other.
I’m using the GR backend.
I have two plots, one created as
p = plot(t, cohs, lw=[3 1 1 1 1], ls=[:solid :dash :dash :dash :dash]) vline!(p, [K*δt], label="Memory Cutoff")
tis just a vector of length
Nx5matrix of Float64s
and the other
inset_plot = plot(cutoffs, y, xscale=:log10, xflip=true, legend=false)
I want to inset the second inside the first. For example,
The closest I got is by combining the two commands into one
layout = bbox(0.1, 0.1, 0.5, 0.5, :right) plot([t, cutoffs], [cohs, y]; lw=[3 1 1 1 1], ls=[:solid :dash :dash :dash :dash], seriestype=[:line :line :line :line :line :scatter], inset_subplots = layout, legend=false, xscale=[:identity :log10], xflip=[false true])
But this doesn’t group the various series how I want.