From bc938b4eba27bbd100c56463558bc45b39903ac4 Mon Sep 17 00:00:00 2001 From: olavl Date: Wed, 19 Apr 2023 11:46:10 -0600 Subject: [PATCH] Update __init__.py --- adjustText/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adjustText/__init__.py b/adjustText/__init__.py index 29a1ec9..015a073 100644 --- a/adjustText/__init__.py +++ b/adjustText/__init__.py @@ -25,6 +25,7 @@ def get_bboxes_pathcollection(sc, ax): Thank you to ImportanceOfBeingErnest https://stackoverflow.com/a/55007838/1304161""" # ax.figure.canvas.draw() # need to draw before the transforms are set. + ax.figure.canvas.draw() transform = sc.get_transform() transOffset = sc.get_offset_transform() offsets = sc._offsets