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

Un-align animations created with to_jshtml()? #11795

Closed
Milestone
@mgeier

Description

@mgeier

I have asked this on thematplotlib-users mailing list (https://mail.python.org/pipermail/matplotlib-users/2018-July/001464.html) and I was encouraged to open an issue here.

Bug report

Bug summary

Animations created withto_jshtml() are centered, and it is quite hard to un-center them.

The culprit is this line:

Code for reproduction

An example can be seen on this page:https://splines.readthedocs.io/en/latest/bezier.html

Actual outcome

The HTML+JS animations are centered.

Expected outcome

Ideally, the alignment of animations should be the same as when usingto_html5_video() and the same as for normal plots.
In other words, the animations should be left-aligned.

If the previous behavior isn't supposed to be changed, it would be great to add an option that allows disabling the centered alignment.

Another reason to remove the alignment: the "align" attribute of "div" elements is "obsolete" and "deprecated" according tohttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/div

Matplotlib version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp