Skip to content

documentation of animation contains non-working code example #17066

@grg2rsr

Description

@grg2rsr

As It reads here on the official docs as an example on how to save an animation as a video file

moviewriter = MovieWriter(...)
moviewriter.setup(fig=fig, 'my_movie.ext', dpi=100)
for j in range(n):
    update_figure(n)
    moviewriter.grab_frame()
moviewriter.finish()

this code snippet contains two bugs, first there is moviewriter.setup(fig=fig, 'my_movie.ext', dpi=100) which should not contain fig= as it will throw a non-keyword argument after a keyword argument error, and then it should be update_figure(j) instead of n which also won't run of course ...

just stumbled over this and thought I'd post it briefly. No idea if this is the correct way or place to report this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions