Skip to content

useless deprecation warning figbox #19938

@2sn

Description

@2sn

Bug report

can'r make sense of deprecation warning

Code for reproduction

ax=gca()
ax.figbox

Actual outcome

MatplotlibDeprecationWarning: 
The figbox attribute was deprecated in Matplotlib 3.4 and will be removed two minor releases later. Use get_subplotspec().get_position(self.figure) instead.

Expected outcome

A useful suggestion. I could not make sense from the deprecation or the documentation on how this was supposed to be replaced. I have no idea what object self.figure refers to, or even in what module get_subplotspec lives.

Matplotlib version

  • Operating system: Fedora 33
  • 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): IPython 7.22.0
  • Other libraries:

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions