Skip to content

Points to note when creating animations using ultraplot #488

@munechika-koyo

Description

@munechika-koyo

Hello,

I really enjoy using ultraplot to create publication-quality plots with simple and straightforward settings.
Likewise, when I applied it to animation creation, I ran into a couple of weird problems.
So, I would like to keep them as notes here.

1. Need to set matplotlib.use("Agg")

When creating an animation with Python scripts, it is necessary to set the backend to Agg; otherwise, the resulting video contains totally horizontal noise.

2. Set tight=False

Set tight=False to avoid changing layout during animation. This change might be triggered when using the format method in the update function used for FuncAnimation.

3. Axis labels (toplabels, leftlabels) are outside the area

Labels like toplabels and leftlabels seem to be placed outside the figure rendering area.
This might be due to the tight layout, but I haven't found a solution yet.

This issue may be irrelevant to those who only want to create static images, but I would be happy if it is useful to someone.

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