Menu

#209 Enable animation output ("movies") for plot classes

0.3.4
done
nobody
None
nobody
2021-11-08
2021-05-28
Ulf Lorenz
No
What and Why

In principle the idea is simple: Add to the plot classes the ability to create a movie of all plots. This is well supported by matplotlib through something called "frame grabbing".

However, there are two complications. First, it adds a whole chain of further dependencies (ffmpeg, ...), and it needs to be checked if this is acceptable or not. Second, you should generally open and close the movie file at some point, so this may be a good point to introduce initialization and finalization of observers. In more abstract terms, the plot classes are then a lot more stateful than I initially thought about observers. Doing so hence changes a bit how observers and propagators work.

Acceptance criteria
  • all existing plot observers can print their output into a movie file
  • this feature is described somewhere (highlighted demo, tutorial, ...)

Used Matplotlib's animation functionality. This has a dependency on FFMpeg, which is at least under Windows an additional install, but something is probably unavoidable.

Related

Tickets: #210
Tickets: #216

Discussion

  • Ulf Lorenz

    Ulf Lorenz - 2021-05-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,4 +2,4 @@
    
     In principle the idea is simple: Add to the plot classes the ability to create a movie of all plots. This is well supported by matplotlib through something called "frame grabbing".
    
    -However, there are two complications. First, it adds a whole chainurther dependencies (ffmpeg, ...), and it needs to be checked if this is acceptable or not. Second, you should generally open and close the movie file at some point, so this may be a good point to introduce initialization and finalization of observers. Doing so changes a bit how observers and propagators work.
    +However, there are two complications. First, it adds a whole chainurther dependencies (ffmpeg, ...), and it needs to be checked if this is acceptable or not. Second, you should generally open and close the movie file at some point, so this may be a good point to introduce initialization and finalization of observers. In more abstract terms, the plot classes are then a lot more stateful than I initially thought about observers. Doing so  hence changes a bit how observers and propagators work.
    
     
  • Ulf Lorenz

    Ulf Lorenz - 2021-05-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,3 +3,8 @@
     In principle the idea is simple: Add to the plot classes the ability to create a movie of all plots. This is well supported by matplotlib through something called "frame grabbing".
    
     However, there are two complications. First, it adds a whole chainurther dependencies (ffmpeg, ...), and it needs to be checked if this is acceptable or not. Second, you should generally open and close the movie file at some point, so this may be a good point to introduce initialization and finalization of observers. In more abstract terms, the plot classes are then a lot more stateful than I initially thought about observers. Doing so  hence changes a bit how observers and propagators work.
    +
    +#####Acceptance criteria#####
    +
    +* all existing plot observers can print their output into a movie file
    +* this feature is described somewhere (highlighted demo, tutorial, ...)
    
     
  • Ulf Lorenz

    Ulf Lorenz - 2021-08-08
    • Milestone: 0.4 goal --> 0.3.4
     
  • Ulf Lorenz

    Ulf Lorenz - 2021-08-23
    • status: open --> assigned
    • assigned_to: Ulf Lorenz
     
  • Ulf Lorenz

    Ulf Lorenz - 2021-11-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,9 +2,13 @@
    
     In principle the idea is simple: Add to the plot classes the ability to create a movie of all plots. This is well supported by matplotlib through something called "frame grabbing".
    
    -However, there are two complications. First, it adds a whole chainurther dependencies (ffmpeg, ...), and it needs to be checked if this is acceptable or not. Second, you should generally open and close the movie file at some point, so this may be a good point to introduce initialization and finalization of observers. In more abstract terms, the plot classes are then a lot more stateful than I initially thought about observers. Doing so  hence changes a bit how observers and propagators work.
    +However, there are two complications. First, it adds a whole chain of further dependencies (ffmpeg, ...), and it needs to be checked if this is acceptable or not. Second, you should generally open and close the movie file at some point, so this may be a good point to introduce initialization and finalization of observers. In more abstract terms, the plot classes are then a lot more stateful than I initially thought about observers. Doing so  hence changes a bit how observers and propagators work.
    
     #####Acceptance criteria#####
    
     * all existing plot observers can print their output into a movie file
     * this feature is described somewhere (highlighted demo, tutorial, ...)
    +
    +----
    +
    +Used Matplotlib's animation functionality. This has a dependency on FFMpeg, which is at least under Windows an additional install, but _something_ is probably unavoidable.
    
    • status: assigned --> done
    • assigned_to: Ulf Lorenz --> nobody
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.