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

autocorplot not working with Julia 1.10.0 rc2 #445

Closed
itsdfish opened this issue Dec 8, 2023 · 0 comments · Fixed by #448
Closed

autocorplot not working with Julia 1.10.0 rc2 #445

itsdfish opened this issue Dec 8, 2023 · 0 comments · Fixed by #448

Comments

@itsdfish
Copy link
Contributor

itsdfish commented Dec 8, 2023

Hi,

As a heads up, I want to report a bug in autocorplot for Julia 1.10 rc2. It works with Julia 1.9.4. Here is a simple example:

Code

using MCMCChains
using StatsPlots 

x = rand(1000, 1, 4)
chain = Chains(x)
autocorplot(chain)

Error

Activating project at `~/.julia/dev/sandbox/StatsPlot`
ERROR: Cannot convert Matrix{Any} to series data for plotting
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] _prepare_series_data(x::Matrix{Any})
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/series.jl:8
  [3] _series_data_vector(x::Matrix{Any}, plotattributes::Dict{Symbol, Any})
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/series.jl:36
  [4] macro expansion
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/series.jl:129 [inlined]
  [5] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, ::Type{RecipesPipeline.SliceIt}, x::Any, y::Any, z::Any)
    @ RecipesPipeline ~/.julia/packages/RecipesBase/BRe07/src/RecipesBase.jl:300
  [6] _process_userrecipes!(plt::Any, plotattributes::Any, args::Any)
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/user_recipe.jl:38
  [7] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any)
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/BGM3l/src/RecipesPipeline.jl:72
  [8] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any)
    @ Plots ~/.julia/packages/Plots/sxUvK/src/plot.jl:223
  [9] #plot#188
    @ Plots ~/.julia/packages/Plots/sxUvK/src/plot.jl:102 [inlined]
 [10] plot
    @ Plots ~/.julia/packages/Plots/sxUvK/src/plot.jl:93 [inlined]
 [11] autocorplot(args::Chains{Float64, AxisArrays.AxisArray{…}, Missing, @NamedTuple{…}, @NamedTuple{}})
    @ MCMCChains ~/.julia/packages/RecipesBase/BRe07/src/RecipesBase.jl:427
 [12] top-level scope
    @ ~/.julia/dev/sandbox/StatsPlot/run_statsplot.jl:9
Some type information was truncated. Use `show(err)` to see complete types.

Versions

Julia 1.10.0 rc2
Status `~/.julia/dev/sandbox/StatsPlot/Project.toml`
  [c7f686f2] MCMCChains v6.0.4
  [f3b207a7] StatsPlots v0.15.6
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

Successfully merging a pull request may close this issue.

1 participant