JuliaPy / JuliaPy/PyCall.jl

PyPlot works but calling matplotlib directly from PyCall aborts

Open
#665 14 comments 2 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

```julia

julia> using PyCall

julia> plt = pyimport("matplotlib.pyplot")
PyObject

julia> x = range(0; stop=2*pi, length=1000); y = sin.(3 * x + 4 * cos.(2 * x));

julia> plt.plot(x, y)
This application failed to start because it could not find or load the Qt platform plugin "windows"
in "".

Reinstalling the application may fix this problem.

```
This causes Julia to terminate abruptly.

Yet using PyPlot works ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Julia session using PyCall and the direct matplotlib.pyplot import, then compare it with the working PyPlot path. Trace the Qt platform-plugin failure and determine whether the issue needs a PyCall change or an environment-specific workaround; done means direct matplotlib calls no longer abort Julia or the limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, matplotlib, python
Domain
backend, data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.