8000 DOC: add behaviour change · matplotlib/matplotlib@3c95c69 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c95c69

Browse files
committed
DOC: add behaviour change
1 parent bc93a9e commit 3c95c69

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
0