Was hoping to overlay multiple distributions, but got this error instead. Maybe it is intentionally unsupported, but should probably be a better error if so?
x = randn(1024)
y = randn(1024)
plot()
StatsPlots.marginalkde!(x, x + y)
BoundsError: attempt to access 1-element Vector{Plots.Subplot} at index [2]
getindex(::Vector{Plots.Subplot}, ::Int64)@array.jl:924
_subplot_setup(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol, Any}, ::Vector{Dict{Symbol, Any}})@pipeline.jl:241
plot_setup!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol, Any}, ::Vector{Dict{Symbol, Any}})@pipeline.jl:149
recipe_pipeline!(::Any, ::Any, ::Any)@RecipesPipeline.jl:87
_plot!(::Plots.Plot, ::Any, ::Any)@plot.jl:208
#plot!#150@plot.jl:198[inlined]
plot!(::Plots.Plot, ::Any)@plot.jl:193
var"#plot!#148"(::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}}, ::typeof(RecipesBase.plot!), ::Any)@plot.jl:188
plot!@plot.jl:180[inlined]
#marginalkde!#132@RecipesBase.jl:365[inlined]
marginalkde!(::Vector{Float64}, ::Vector{Float64})@RecipesBase.jl:365
Was hoping to overlay multiple distributions, but got this error instead. Maybe it is intentionally unsupported, but should probably be a better error if so?