Skip to content

Commit 9246835

Browse files
committed
Try to use transSubfigure for locating child axes
1 parent 7bbb340 commit 9246835

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proplot/axes/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,10 @@ def __init__(self, bounds, transform):
655655
self._transform = transform
656656

657657
def __call__(self, ax, renderer): # noqa: U100
658+
transfig = getattr(ax.figure, 'transSubfigure', ax.figure.transFigure)
658659
bbox = mtransforms.Bbox.from_bounds(*self._bounds)
659660
bbox = mtransforms.TransformedBbox(bbox, self._transform)
660-
bbox = mtransforms.TransformedBbox(bbox, ax.figure.transFigure.inverted())
661+
bbox = mtransforms.TransformedBbox(bbox, transfig.inverted())
661662
return bbox
662663

663664

0 commit comments

Comments
 (0)