Skip to content

Commit

Permalink
DOC: add behaviour change
Browse files Browse the repository at this point in the history
  • Loading branch information
jklymak committed Apr 8, 2022
1 parent bc93a9e commit 3c95c69
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/api/next_api_changes/behavior/22745-JMK.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
No need to specify renderer for get_tightbbox and get_window_extent
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The `.Artist.get_tightbbox` and `.Artist.get_window_extent` methods
no longer require the *renderer* kwarg, saving users from having to
querry it from ``fig.canvas.get_renderer``. Currently, all Artists are
aware of their parent figure (``artist.figure``), and if the *renderer*
kwarg is not supplied these methods first check if there is a cached renderer
from a previous draw and use that. If there is no cahched renderer, then
the methods will use ``fig.canvas.get_renderer()`` as a fallback.

0 comments on commit 3c95c69

Please sign in to comment.