ERROR: Unexpected character with savefig in Julia

83 views Asked by At

I'm just trying to save a plot with savefig but I've encountered a strange ERROR.

julia> PlotlyJS.savefig(p)
ERROR: Unexpected character
Line: 0
Around: ...�Desea terminar el tra...
            ^

Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] _error(message::String, ps::JSON.Parser.MemoryParserState)
    @ JSON.Parser C:\Users\Franco\.julia\packages\JSON\93Ea8\src\Parser.jl:140
  [3] parse_jsconstant(#unused#::JSON.Parser.ParserContext{Dict{String, Any}, Int64, true, nothing}, ps::JSON.Parser.MemoryParserState)      
    @ JSON.Parser C:\Users\Franco\.julia\packages\JSON\93Ea8\src\Parser.jl:193
  [4] parse_value(pc::JSON.Parser.ParserContext{Dict{String, Any}, Int64, true, nothing}, ps::JSON.Parser.MemoryParserState)
    @ JSON.Parser C:\Users\Franco\.julia\packages\JSON\93Ea8\src\Parser.jl:170
  [5] parse(str::String; dicttype::Type, inttype::Type{Int64}, allownan::Bool, null::Nothing) 
    @ JSON.Parser C:\Users\Franco\.julia\packages\JSON\93Ea8\src\Parser.jl:450
  [6] parse
    @ C:\Users\Franco\.julia\packages\JSON\93Ea8\src\Parser.jl:443 [inlined]
  [7] savefig(p::Plot{Vector{GenericTrace{Dict{Symbol, Any}}}, Layout{Dict{Symbol, Any}}, Vector{PlotlyFrame}}; width::Nothing, height::Nothing, scale::Nothing, format::String)
    @ PlotlyJS C:\Users\Franco\.julia\packages\PlotlyJS\Jj38U\src\kaleido.jl:104
  [8] savefig(p::Plot{Vector{GenericTrace{Dict{Symbol, Any}}}, Layout{Dict{Symbol, Any}}, Vector{PlotlyFrame}})
    @ PlotlyJS C:\Users\Franco\.julia\packages\PlotlyJS\Jj38U\src\kaleido.jl:73
  [9] savefig(p::PlotlyJS.SyncPlot; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ PlotlyJS C:\Users\Franco\.julia\packages\PlotlyJS\Jj38U\src\kaleido.jl:71
 [10] savefig(p::PlotlyJS.SyncPlot)
    @ PlotlyJS C:\Users\Franco\.julia\packages\PlotlyJS\Jj38U\src\kaleido.jl:71
 [11] top-level scope
    @ REPL[56]:1

Can solve it updating packages or reinstalling packages. Don't know what happen :(.

EDIT: I'm trying to save a contour plot that comes from a function

p = employment_contour(results)

But I have tried doing it step by step and, as expected, it doesn't work either. "results" is a matrix.

0

There are 0 answers