JuliaPy / JuliaPy/PyCall.jl

PyPlot works but calling matplotlib directly from PyCall aborts

Offen
#665 14 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
1.5k
Forks
186
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

```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 ?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
julia, matplotlib, python
Bereich
backend, data-visualization
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.