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

[BUG] KeyError when plotting Array of Measurements with Plots 1.2.3 #2693

Closed
EHBaozi opened this issue May 11, 2020 · 0 comments · Fixed by #2694
Closed

[BUG] KeyError when plotting Array of Measurements with Plots 1.2.3 #2693

EHBaozi opened this issue May 11, 2020 · 0 comments · Fixed by #2694
Labels

Comments

@EHBaozi
Copy link

EHBaozi commented May 11, 2020

Details

Stacktrace:

julia> using Plots, Measurements
julia> plot([1±0.1])
ERROR: KeyError: key :seriestype not found
Stacktrace:
 [1] getindex at .\dict.jl:477 [inlined]
 [2] process_sliced_series_attributes!(::Plots.Plot{Plots.GRBackend}, ::Array{Dict{Symbol,Any},1}) at C:\Users\invis\.julia\packages\Plots\l9il6\src\pipeline.jl:165
 [3] _process_seriesrecipes!(::Plots.Plot{Plots.GRBackend}, ::Array{Dict{Symbol,Any},1}) at C:\Users\invis\.julia\packages\RecipesPipeline\5b2IP\src\series_recipe.jl:14
 [4] recipe_pipeline!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{Array{Measurement{Float64},1}}) at C:\Users\invis\.julia\packages\RecipesPipeline\5b2IP\src\RecipesPipeline.jl:95
 [5] _plot!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{Array{Measurement{Float64},1}}) at
C:\Users\invis\.julia\packages\Plots\l9il6\src\plot.jl:167
 [6] plot(::Array{Measurement{Float64},1}; kw::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\invis\.julia\packages\Plots\l9il6\src\plot.jl:57
 [7] plot(::Array{Measurement{Float64},1}) at C:\Users\invis\.julia\packages\Plots\l9il6\src\plot.jl:51
 [8] top-level scope at REPL[5]:1
 [9] eval(::Module, ::Any) at .\boot.jl:331
 [10] eval_user_input(::Any, ::REPL.REPLBackend) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\REPL\src\REPL.jl:86
 [11] run_backend(::REPL.REPLBackend) at C:\Users\invis\.julia\packages\Revise\AMRie\src\Revise.jl:1023
 [12] top-level scope at none:0

Plots 1.2.2 works just fine.
(I use the master branch of Measurements.jl)

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotly x
plotlyjs x
pgfplotsx x
inspectdr x

Versions

Plots.jl version: 1.2.3
Backend version: GR 0.49.1
Output of versioninfo():

julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4
  JULIA_CUDA_USE_BINARYBUILDER = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant