JuliaPy / JuliaPy/PyCall.jl

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

Aperta
#889 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Julia
Stelle
1.5k
Fork
186
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.