X Tutup
Skip to content

FuncAnimation crashes the interpreter (win7, 64bit) #5582

@jankatins

Description

@jankatins
import matplotlib.pyplot as plt
import matplotlib.animation as animation
%matplotlib inline
def updatefig(i):
    fig = plt.gcf()
    ax = plt.gca()
    ax.plot(i,i, "o")
updatefig(10) # works
plt.figure()
# running the following lines (actually the save, which seems to run the functions) 
# crashes the interpreter
ani = animation.FuncAnimation(plt.gcf(), updatefig, frames=40)
ani.save('movie.mp4')

I actually discovered the crash while trying to animate a basemap

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup