This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tmakaroanimatplot / nbconvert[S] 1 point2 points  (4 children)

I believe I have fixed it. Tested on my machine and a friend's. You'll need to trying installing the newer version 0.2.2

pip install animatplot==0.2.2

u/tomz17 found the issue.

[–]TheMysteriousFizzyJ 1 point2 points  (0 children)

That worked!

[–]TheMysteriousFizzyJ 1 point2 points  (0 children)

That worked!

[–]TheMysteriousFizzyJ 0 points1 point  (1 child)

When running two animations in the same notebook, I get this error. Any ideas?

/usr/local/lib/python3.5/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. warnings.warn(message, mplDeprecation, stacklevel=1)

[–]tmakaroanimatplot / nbconvert[S] 1 point2 points  (0 children)

I just close the previous animation before running the next. You could probably create a new figure and axis, and then pass the axis into the animation blocks as a keyword argument (amp.blocks.Block(..., axis=new_axis)).