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