Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6586369 commit 0510b2bCopy full SHA for 0510b2b
1 file changed
examples/animation/bayes_update.py
@@ -40,8 +40,7 @@ def __call__(self, i):
40
self.line.set_data(self.x, y)
41
return self.line,
42
43
-fig = plt.figure()
44
-ax = fig.add_subplot(1, 1, 1)
+fig, ax = plt.subplots()
45
ud = UpdateDist(ax, prob=0.7)
46
anim = FuncAnimation(fig, ud, frames=np.arange(100), init_func=ud.init,
47
interval=100, blit=True)
0 commit comments