Skip to content

[Doc]: Create Animation Tutorial #24228

Closed

Description

@story645

Documentation Link

https://matplotlib.org/devdocs/tutorials/index.html

Problem

It'd be good to have a one stop animation tutorial that gives an overview of the different animation methods and different writers. This overlaps with #19520 and #24159 and advocated for in #22374

Mostly opened this issue so we could maybe hash out a proposed outline & document what folks would want in a tutorial.

Suggested improvement

Tutorial sections

  1. Animation Classes - brief overview of funcanimation and artist animation1:
    1. FuncAnimation: most common artist types2:
      1. Line2D
      2. PathCollection
      3. AxesImage
      4. maybe patches and contours?
    2. ArtistAnimation
  2. Animation Writers:
    1. demos of saving a FuncAnimation and an ArtistAnimation with each
    2. possibly the table of (writer, file types, dependencies) proposed in [Doc]: clarify which writers animation.save supports #24159 should be here
  3. Advanced Topics:
    1. Linkout to blitting reference here

Footnotes

  1. I think it's that func takes a function that updates an artist and may or may not return it, while artist takes the list of changed artists? A pro/con table or table of use cases would also maybe be good ↩

  2. yes this might change if a unified abstraction goes in but that's probably ages out so documenting current state is useful ↩

Activity

  1. chahak13 commented on Oct 20, 2022

    @chahak13
    Contributor

    Hi! I've been working on a package that also uses matplotlib's animation module (maige) I've been planning to spend some time in the animation module and can maybe help out with this?

  2. story645 commented on Oct 20, 2022

    @story645
    MemberAuthor

    Absolutely/that'd be awesome/if you want to start sketching out a tutorial go for it!

  3. chahak13 commented on Oct 20, 2022

    @chahak13
    Contributor

    Great, thanks! I'll give this a shot

  4. chahak13 commented on Oct 23, 2022

    @chahak13
    Contributor

    Hi, I had a question about this. In pipe-based writer classes, the supported formats will be governed by the utility being used (ffmpeg/imagemagick), since the frames are passed to them directly. Is my understanding right?

  5. story645 commented on Oct 24, 2022

    @story645
    MemberAuthor

    I think so, but maybe @dopplershift or @anntzer can confirm?

  6. dopplershift commented on Oct 24, 2022

    @dopplershift
    Contributor

    Assuming by "supported formats", you mean the final saved animation format (e.g. gif, mp4), then yes, that's controlled by the tool being used.

  7. chahak13 commented on Oct 25, 2022

    @chahak13
    Contributor

    Yes, that's what I meant. Thanks!

  8. chahak13 commented on Oct 25, 2022

    @chahak13
    Contributor

    I've started working on this in #24274. I started out with writing the code for simple animations for different animation classes. I'll add the write-up to it now. My idea is to try and cover at least all the topics mentioned in various issues related to animation module. Let me know if there are any suggestions. Thanks!

  9. linked a pull request that will close this issueAnimation Tutorial #24274on Oct 25, 2022
  10. added this to the v3.7.0 milestone on May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions