Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MigrateBlitManager from docs to library #22183

Open
@tacaswell

Description

@tacaswell

@tacaswell wrote:

Had some thoughts about hardeningBlitManager a bit more and putting into the library, but was not surewhere to put it and starting in a tutorial seems like a lower-stakes place to start.

ThatBlitManager class looks pretty useful for 'live' plots that are not timed (e.g. we want to plot at the rate that data becomes available). Maybe the class could be put inmatplotlib.animation?

Originally posted by@joukewitteveen in#10187 (comment)

BlitManager is a class that was written for pedagogical and documentation reasons in#10187. When I wrote it I had an idea that it would be generally useful, but was not sure (and did not put in the work to harden / test the code). We now have a user who asking for it so this seems like a good time to re-consider!

The use case that@joukewitteveen has is being on the receive side of a push notification that there is new data, but I think this would make sense anytime that a user wants more control over the timing of the animation (you could also do this with clever use of concurrency + generators but that gets complicated fast).

The work that needs to be done:

  1. review the API (it should take a figure not a canvas I think)
  2. add tests
  3. think through event loop integration (do we want to callcanvas.flush_events?)
  4. make sure it works on all backends that support blitting (I think the OSX related issues are now fixed, but would be good to check).
  5. write a tutorial on using it / adapt the existing section to be about it.

We may want to do this in the main repo, but I could also see this fitting in mpl-gui (https://github.com/tacaswell/mpl-gui) at least to start

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp