8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc93a9e commit 3c95c69Copy full SHA for 3c95c69
doc/api/next_api_changes/behavior/22745-JMK.rst
@@ -0,0 +1,10 @@
1
+No need to specify renderer for get_tightbbox and get_window_extent
2
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+The `.Artist.get_tightbbox` and `.Artist.get_window_extent` methods
5
+no longer require the *renderer* kwarg, saving users from having to
6
+querry it from ``fig.canvas.get_renderer``. Currently, all Artists are
7
+aware of their parent figure (``artist.figure``), and if the *renderer*
8
+kwarg is not supplied these methods first check if there is a cached renderer
9
+from a previous draw and use that. If there is no cahched renderer, then
10
+the methods will use ``fig.canvas.get_renderer()`` as a fallback.
0 commit comments