celluloid
celluloid copied to clipboard
celluloid not working
Pip'ed celluloid and ran below code and nothing happened....
fig = plt.figure() camera = Camera(fig) for i in range(10): plt.plot([i] * 10) camera.snap() animation = camera.animate()
Sorry for the late response. Did you try saving the animation as an mp4 or gif, or try displaying it in a notebook?
https://github.com/jwkvam/celluloid#manual
hello! im having the same issue, just to clarify is saving the animation as an mp4 required? i am looking to plot data in real-time and hoping this is the tool im looking for. :)
even the first illustration in the documentation page of celluloid on google collab. install ,copy paste and run
pip install celluloid from matplotlib import pyplot as plt from celluloid import Camera
fig = plt.figure() camera = Camera(fig) for i in range(10): plt.plot([i] * 10) camera.snap() animation = camera.animate() please resolve
There is nothing to resolve if you read the documentation camera.animate()
on its own wont do anything.
You either need to call animation.save(filename)
to save it as an mp4 or HTML(animation.to_html5_video())
. The examples in the documentation that do not have anything after animation = camera.animate()
are clearly left this way to allow for the ambiguity of saving or visualising on the notebook.