Skip to content

Commit

Permalink
Improve behavior of spanning labels with includepanels=True
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Sep 10, 2021
1 parent 8f70416 commit 332ba70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proplot/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,7 @@ def _get_align_coord(self, side, axs):
else:
pos = 0.5 * (box_lo.y1 + box_hi.y0) # 'lo' is actually on top of figure
ax = axs[(np.argmin(ranges[:, 0]) + np.argmax(ranges[:, 1])) // 2]
other = getattr(ax, f'_share{s}')
if other and other._panel_parent: # deflect to shared panel axes
ax = other
ax = ax._panel_parent or ax # always use main subplot for spanning labels
return pos, ax

def _get_offset_coord(self, side, axs, renderer, *, pad=None, extra=None):
Expand Down

0 comments on commit 332ba70

Please sign in to comment.