You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error running the animation/random_walk.py example #13778
When running the random_walk.py example, python throws an error
Code for reproduction
This appears by running random_walk.py as is
Actual outcome
AttributeError stating that the generated ax has no plot attribute
Traceback (most recent call last):
File "random_walk.py", line 52, in <module>
lines = [ax.plot(dat[0, 0:1], dat[1, 0:1], dat[2, 0:1])[0] for dat in data]
File "random_walk.py", line 52, in <listcomp>
lines = [ax.plot(dat[0, 0:1], dat[1, 0:1], dat[2, 0:1])[0] for dat in data]
AttributeError: 'NoneType' object has no attribute 'plot'
Activity
daguito81 commentedon Mar 28, 2019
I posted the bug for documentation purposes but I'd like to take a crack at it
fixed bug in matplotlib#13778, created description matplotlib#8921
anntzer commentedon Mar 28, 2019
The example must be run with matplotlib master, not 2.2.3 (with 2.2.3, you need to run an older version of the example).
daguito81 commentedon Mar 28, 2019
Thank you for your comment. I tested it with master and indeed it works. Sorry about that
anntzer commentedon Mar 28, 2019
No worries. Good to close?
daguito81 commentedon Mar 28, 2019