October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following are the steps needed to implement the logic:
app = wx.App()
window = wx.Frame(None, -1, "Embedding with wxPython")
fig = Figure(figsize=(6, 5), dpi=100)canvas = FigureCanvas(window, -1, fig)toolbar = NavigationToolbar2WxAgg(canvas)
ax = fig.add_subplot(111,projection='polar')theta = np.arange(0., 2., 1./180.)*np.piax.plot(theta, 5*np.cos(3*theta))
def update(event): n=n_slider.GetValue() ax.clear() ax.plot(theta, 5*np.cos(n*theta)) ...
Read now
Unlock full access