added puzzle solution

This commit is contained in:
Tobias Kessels
2018-12-31 12:06:03 +01:00
parent 04bf7f9bb8
commit 148c426f4d
4 changed files with 332 additions and 0 deletions

17
matplottest.py Normal file
View File

@@ -0,0 +1,17 @@
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 6*np.pi, 100)
y = np.sin(x)
# You probably won't need this if you're embedding things in a tkinter plot...
plt.ion()
fig = plt.figure()
ax = fig.add_subplot(111)
line1, = ax.plot(x, y, 'r-') # Returns a tuple of line objects, thus the comma
for phase in np.linspace(0, 10*np.pi, 500):
line1.set_ydata(np.sin(x + phase))
fig.canvas.draw()
fig.canvas.flush_events()