forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the docstring of _get_textbox. (`Text.get_extents` doesn't exist.) Inline `_draw_bbox` into its sole call site (the first half is the same as `update_bbox_position_size`; this does mean calling `convert_xunits/convert_yunits` twice but that should be cheap compared to everything else). `Annotation.draw` doesn't need to also call `update_bbox_position_size` as `Text.draw` will do it (I think the call was duplicated because the draw-a-bbox functionality was present in Annotation before it also moved to Text). rcParams -> mpl.rcParams. Remove an extraneous import.
- Loading branch information
Showing
1 changed file
with
16 additions
and
34 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