October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following are the steps required to implement the logic:
theta = np.arange(0., 2., 1./180.)*np.pi
fig = plt.figure(figsize=(6, 5), dpi=100)
ax = fig.add_subplot(111,projection='polar')
ax.plot(theta, 5*np.cos(3*theta))
window = fig.canvas.manager.window
def update(): n=n_slider.get() ax.clear() ax.plot(theta, 5*np.cos(n*theta)) fig.canvas.draw()
n_slider = tk.Scale(master=window,variable=tk.IntVar(), from_=3, to=10, ...
Read now
Unlock full access