File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1494,6 +1494,27 @@ def get_fontsize(self, s=None):
1494
1494
"""
1495
1495
return self .prop .get_size_in_points ()
1496
1496
1497
+
1498
+ def get_window_extent (self , renderer ):
1499
+ """
1500
+ get the bounding box in display space.
1501
+ """
1502
+ bboxes = [child .get_window_extent (renderer ) \
1503
+ for child in self .get_children ()]
1504
+
1505
+ return Bbox .union (bboxes )
1506
+
1507
+
1508
+ def get_tightbbox (self , renderer ):
1509
+ """
1510
+ get tight bounding box in display space.
1511
+ """
1512
+ bboxes = [child .get_tightbbox (renderer ) \
1513
+ for child in self .get_children ()]
1514
+
1515
+ return Bbox .union (bboxes )
1516
+
1517
+
1497
1518
def update_positions (self , renderer ):
1498
1519
"""
1499
1520
Update the pixel positions of the annotated point and the text.
You can’t perform that action at this time.
0 commit comments