8000 regression for 3.4.x - ax.figbox replacement incompatible to all version including 3.3.4 · Issue #19982 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
regression for 3.4.x - ax.figbox replacement incompatible to all version including 3.3.4 #19982
Closed
@2sn

Description

@2sn

Bug report

Bug summary

The replacement of ax.figbox as well as suggested replacement code by deprecation warning produce different outputs than what this did for a decade.

Code for reproduction

(part of plotting package)

Actual outcome

Example form 3.4.1

(Pdb) p ax.figbox
Bbox([[0.125, 0.10999999999999999], [0.9, 0.88]])
(Pdb) ax.get_subplotspec().get_position(ax.figure)
Bbox([[0.125, 0.10999999999999999], [0.9, 0.88]])

Expected outcome

Example from 3.3.4

(Pdb) p ax.figbox
Bbox([[0.07234432444852941, 0.07502374387254904], [0.9598087086397059, 0.9739713541666667]])
(Pdb) ax.get_subplotspec().get_position(ax.figure)
Bbox([[0.125, 0.10999999999999999], [0.9, 0.88]])

Obviously, wrong layout messes up output.

Can a function be added that provides the old figbox information?

(Why was it removed in the first place?)

Matplotlib version

  • Operating system:
  • Matplotlib version (import matplotlib; print(matplotlib.__version__)): 3.4.1
  • Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg
  • Python version: 3.9.4
  • Jupyter version (if applicable): 7.22.0
  • Other libraries: N/A

pip3

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

      0