I am building an application that embeds a matplotlib figure into the GUI. The problem is that my app is crashing as soon as I add anything from matplotlib into my code (ex
I am still getting crashes with this:
import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 2 * np.pi, 400)
y = np.sin(x ** 2)
f = plt.figure()
plt.plot(x, y)
f.show()
plt.pause(0.0001)
The window with a sinappears and then the kernel freezes. Windows 10 with Anaconda3