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

Error for histogram plotting #3257

Closed
likanzhan opened this issue Jan 29, 2021 · 3 comments
Closed

Error for histogram plotting #3257

likanzhan opened this issue Jan 29, 2021 · 3 comments
Labels

Comments

@likanzhan
Copy link

Details

when I run histogram([1,2,1,1,4,3,8], bins=0:8),
I got the following error


ERROR: The function body AST defined by this @generated function is not pure. This likely means it contains a closure or comprehension.
Stacktrace:
  [1] _make_hist(vs::Tuple{Vector{Float64}}, binning::UnitRange{Int64}; normed::Bool, weights::Nothing)
    @ Plots ~/.julia/packages/Plots/oZheM/src/recipes.jl:787
  [2] macro expansion
    @ ~/.julia/packages/Plots/oZheM/src/recipes.jl:799 [inlined]
  [3] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, #unused#::Type{Val{:barhist}}, x::Any, y::Any, z::Any)
    @ Plots ~/.julia/packages/RecipesBase/92zOw/src/RecipesBase.jl:282
  [4] _process_seriesrecipe(plt::Any, plotattributes::Any)
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/uPBKQ/src/series_recipe.jl:50
  [5] _process_seriesrecipe(plt::Any, plotattributes::Any)
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/uPBKQ/src/series_recipe.jl:60
  [6] _process_seriesrecipes!(plt::Any, kw_list::Any)
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/uPBKQ/src/series_recipe.jl:27
  [7] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any)
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/uPBKQ/src/RecipesPipeline.jl:97
  [8] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any)
    @ Plots ~/.julia/packages/Plots/oZheM/src/plot.jl:172
  [9] #plot#131
    @ ~/.julia/packages/Plots/oZheM/src/plot.jl:58 [inlined]
 [10] histogram(args::Any; kw::Any)
    @ Plots ~/.julia/packages/RecipesBase/92zOw/src/RecipesBase.jl:403
 [11] top-level scope
    @ REPL[28]:1

Backends

gr()

Versions

Plots.jl version: Plots v1.10.2
Backend version (]st -m): GR v0.53.0
Output of versioninfo():

Julia Version 1.7.0-DEV.400
Commit 9de107a63a (2021-01-28 19:51 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, haswell)
Environment:
  JULIA_PKG_SERVER = https://mirrors.bfsu.edu.cn/julia/static
  JULIA_EDITOR = code

@likanzhan likanzhan added the bug label Jan 29, 2021
@daschw
Copy link
Member

daschw commented Feb 10, 2021

Out of curiosity, what Julia version are you using? This looks similar to our test failures on nightly. However, I can't reproduce on 1.6-rc1.

@likanzhan
Copy link
Author

@daschw, Yes, it is on nightly.

Backends

gr()

Versions

Plots.jl version: Plots v1.10.2
Backend version (]st -m): GR v0.53.0
Output of versioninfo():

Julia Version 1.7.0-DEV.400
Commit 9de107a63a (2021-01-28 19:51 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, haswell)
Environment:
  JULIA_PKG_SERVER = https://mirrors.bfsu.edu.cn/julia/static
  JULIA_EDITOR = code

@t-bltg
Copy link
Member

t-bltg commented Nov 25, 2022

Cannot reproduce.

@t-bltg t-bltg closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants