JuliaPy / JuliaPy/PyCall.jl

Error with QT Library When Calling `PyPlot` Uisng `PyCall` on Windows

Offen
#889 4 Kommentare 0 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

I'm running the demo code on the `README` file:

```
plt = pyimport("matplotlib.pyplot")
x = range(0;stop=2*pi,length=1000); y = sin.(3*x + 4*cos.(2*x));
plt.plot(x, y, color="red", linewidth=2.0, linestyle="--")
plt.show()
```

I get the following error:

![image](https://user-images.githubusercontent.com/7347975/112678711-52224a80-8e7c-11eb-9f8c-306d323ec4b2.png)

Then the REPL just crashes.

Could it be a missing installation by `Conda` or something?
Using Julia 1.6 on Windows 10.

If I set:

```
mat = pyimport("matplotlib")
mat.use("TkAgg")
```

Then it works.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Use the README demo as the reproduction entry point on Julia 1.6 and Windows 10, then compare the default matplotlib backend with the reported TkAgg workaround. The issue is complete when the PyPlot demo no longer crashes in the default setup, or the required Windows/Conda configuration is clearly documented.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
julia, matplotlib, python
Bereich
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.