Skip to content

PyPlot.jl does not work with matplotlib 2.0? #269

Closed
@giordano

Description

@giordano

Since a few weeks ago, I cannot use PyPlot anymore. Any plotting command results in

ERROR: PyCall.PyError(":PyObject_Call",PyCall.PyObject(Ptr{PyCall.PyObject_struct} @0x00007f0c8ebb2040),PyCall.PyObject(Ptr{PyCall.PyObject_struct} @0x00007f0c71f83fc8),PyCall.PyObject(Ptr{PyCall.PyObject_struct} @0x00007f0c71f24098))
Stacktrace:
 [1] pyerr_check at /home/mose/.julia/v0.6/PyCall/src/exception.jl:56 [inlined]
 [2] pyerr_check at /home/mose/.julia/v0.6/PyCall/src/exception.jl:61 [inlined]
 [3] macro expansion at /home/mose/.julia/v0.6/PyCall/src/exception.jl:79 [inlined]
 [4] #_pycall#66(::Array{Any,1}, ::Function, ::PyCall.PyObject, ::Array{Float64,1}, ::Vararg{Array{Float64,1},N}) at /home/mose/.julia/v0.6/PyCall/src/PyCall.jl:546
 [5] _pycall(::PyCall.PyObject, ::Array{Float64,1}, ::Vararg{Array{Float64,1},N}) at /home/mose/.julia/v0.6/PyCall/src/PyCall.jl:534
 [6] #pycall#70(::Array{Any,1}, ::Function, ::PyCall.PyObject, ::Type{PyCall.PyAny}, ::Array{Float64,1}, ::Vararg{Array{Float64,1},N}) at /home/mose/.julia/v0.6/PyCall/src/PyCall.jl:568
 [7] pycall(::PyCall.PyObject, ::Type{PyCall.PyAny}, ::Array{Float64,1}, ::Vararg{Array{Float64,1},N}) at /home/mose/.julia/v0.6/PyCall/src/PyCall.jl:568
 [8] #plot#85(::Array{Any,1}, ::Function, ::Array{Float64,1}, ::Vararg{Array{Float64,1},N}) at /home/mose/.julia/v0.6/PyPlot/src/PyPlot.jl:399
 [9] plot(::Array{Float64,1}, ::Vararg{Array{Float64,1},N}) at /home/mose/.julia/v0.6/PyPlot/src/PyPlot.jl:396

I noticed that my matplotlib version is 2.0.0rc2 (installed from Debian testing's repositories), maybe PyPlot is currently incompatible with this version of the plotting library? matplotlib from python seems to work (I'm not a python user, just tested a simple example plot).

Update: this happens only in Julia 0.6, in Julia 0.5 works flawless. May be related to #266 (I can precompile the package, but probably get the same error reported at #266 (comment)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions