8000 Liveplot animation vs frames · Issue #15 · DedalusProject/dedalus · GitHub
[go: up one dir, main page]

Skip to content
Liveplot animation vs frames #15
@kburns

Description

@kburns

Original report (archived issue) by Benjamin Brown (Bitbucket: Benjamin Brown).


This is a forward-looking bug notice.

When grabbing Keaton's branch and testing one of the 2d problems, I noticed that the liveplot routines weren't posting anything to the screen. The problem likely stems from incompatibilities between how matplotlib does animations and what mac os allows. This is a known and currently unresolvable issue (e.g., matplotlib/matplotlib#531) having to do with the macosx backend.

One short term solution is to output individual frames, and then stitch them together after the fact. To do this in the various liveplot.py, replace

fig.canvas.draw()

with

fig.savefig("frame_"+str("{0:04}").format(i)+".png", dpi=200)

or similar.

Here's a possible longer term workaround:
http://nbviewer.ipython.org/urls/raw.github.com/jakevdp/matplotlib_pydata2013/master/notebooks/05_Animations.ipynb

Haven't tested it yet, as I don't know how to open Ipython notebooks yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0