celluloid icon indicating copy to clipboard operation
celluloid copied to clipboard

celluloid not working

Open talasinski opened this issue 5 years ago • 4 comments

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()

talasinski avatar May 22 '19 04:05 talasinski

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

jwkvam avatar Jul 26 '19 06:07 jwkvam

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. :)

MrSassyBritches avatar Jun 10 '20 20:06 MrSassyBritches

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

Harshitshukla0 avatar May 07 '21 07:05 Harshitshukla0

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.

franciscovargas avatar May 17 '21 15:05 franciscovargas