bar([1,2,3])
Error showing value of type Plots.Plot{Plots.PlotlyBackend}:
ERROR: UndefRefError: access to undefined reference
Stacktrace:
[1] getindex
@ .\array.jl:801 [inlined]
[2] iterate
@ .\array.jl:777 [inlined]
[3] show_json(io::JSON.Writer.PrettyContext{IOBuffer}, s::JSON.Serializations.StandardSerialization, x::Vector{Any})
@ JSON.Writer ~.julia\packages\JSON\3rsiS\src\Writer.jl:293
[4] #show_json#3
@ ~.julia\packages\JSON\3rsiS\src\Writer.jl:325 [inlined]
[5] print(io::IOBuffer, obj::Vector{Any}, indent::Int64)
@ JSON.Writer ~.julia\packages\JSON\3rsiS\src\Writer.jl:347
[6] sprint(::Function, ::Vector{Any}, ::Vararg{Any, N} where N; context::Nothing, sizehint::Int64)
@ Base .\strings\io.jl:105
[7] sprint
@ .\strings\io.jl:101 [inlined]
[8] json
@ ~.julia\packages\JSON\3rsiS\src\Writer.jl:366 [inlined]
[9] plotly_series_json
@ ~.julia\packages\Plots\SVksJ\src\backends\plotly.jl:903 [inlined]
[10] plotly_html_body(plt::Plots.Plot{Plots.PlotlyBackend}, style::Nothing)
@ Plots ~.julia\packages\Plots\SVksJ\src\backends\plotly.jl:951
[11] plotly_html_body
@ ~.julia\packages\Plots\SVksJ\src\backends\plotly.jl:926 [inlined]
[12] html_body
@ ~.julia\packages\Plots\SVksJ\src\backends\plotly.jl:908 [inlined]
[13] #standalone_html#360
@ ~.julia\packages\Plots\SVksJ\src\backends\web.jl:7 [inlined]
[14] write_temp_html(plt::Plots.Plot{Plots.PlotlyBackend})
@ Plots ~.julia\packages\Plots\SVksJ\src\backends\web.jl:36
[15] standalone_html_window(plt::Plots.Plot{Plots.PlotlyBackend})
@ Plots ~.julia\packages\Plots\SVksJ\src\backends\web.jl:49
[16] _display
@ ~.julia\packages\Plots\SVksJ\src\backends\plotly.jl:994 [inlined]
[17] display(#unused#::Plots.PlotsDisplay, plt::Plots.Plot{Plots.PlotlyBackend})
@ Plots ~.julia\packages\Plots\SVksJ\src\output.jl:150
[18] display(x::Any)
@ Base.Multimedia .\multimedia.jl:328
[19] #invokelatest#2
@ .\essentials.jl:708 [inlined]
[20] invokelatest
@ .\essentials.jl:706 [inlined]
[21] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
@ REPL C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:247
[22] (::REPL.var"#40#41"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
@ REPL C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:231
[23] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:462
[24] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
@ REPL C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:229
[25] (::REPL.var"#do_respond#61"{Bool, Bool, REPL.var"#72#82"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
@ REPL C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:798
[26] #invokelatest#2
@ .\essentials.jl:708 [inlined]
[27] invokelatest
@ .\essentials.jl:706 [inlined]
[28] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ REPL.LineEdit C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\LineEdit.jl:2441
[29] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
@ REPL C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:1126
[30] (::REPL.var"#44#49"{REPL.LineEditREPL, REPL.REPLBackendRef})()
@ REPL .\task.jl:406
似乎是个已知的bug [BUG] bar() doesn't work with plotly backend anymore · Issue #3364 · JuliaPlots/Plots.jl · GitHub
谢谢!改为Plots 1.10.6就可以了!