-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |