Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marginalkde! results in error #502

Open
BioTurboNick opened this issue Jun 23, 2022 · 0 comments
Open

marginalkde! results in error #502

BioTurboNick opened this issue Jun 23, 2022 · 0 comments

Comments

@BioTurboNick
Copy link
Member

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!#[email protected]: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
[email protected]:180[inlined]
#marginalkde!#[email protected]:365[inlined]
marginalkde!(::Vector{Float64}, ::Vector{Float64})@RecipesBase.jl:365
@BioTurboNick BioTurboNick changed the title marginalkde! results in marginalkde! results in error Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant