8000 Plot in JS Animation has larger margin than "normal" PNG plot · Issue #12115 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Plot in JS Animation has larger margin than "normal" PNG plot #12115
Closed
@mgeier

Description

@mgeier

Bug report

Bug summary

A few hours ago #12098 was merged, which left-aligns JS Animation plots and thereby fixes #11795.

This brought to light another little inconsistency between JS Animations and "normal" plots.
The PNG data in the JS Animation seems to have a larger white margin than normal plots.
Therefore, if I plot a normal plot and then a similar JS Animation, the plot in the JS Animation shows up a bit further right (because of the PNG margin).

Code for reproduction

I'm using the examples from https://splines.readthedocs.io/en/latest/bezier.html

Actual outcome

grafik

Expected outcome

Ideally, the PNG data in the JS Animation should have the same white margin as "normal" PNG plots.

Matplotlib version

  • Operating system: Debian Linux
  • Matplotlib version: master (848d9fc a.k.a. 3.0.0rc1.post275+g848d9fc56)
  • Matplotlib backend: module://ipykernel.pylab.backend_inline
  • Python version: 3.6.6
  • Jupyter version: JupyterLab 0.35.0a0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0