Skip to content

Commit

Permalink
Use axes-local titlepad for inner titles
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Jun 30, 2021
1 parent 33bb365 commit 14f3d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proplot/axes/base.py
Expand Up @@ -699,14 +699,14 @@ def _update_title_position(self, renderer):
loc = self._abc_loc
if loc in ('left', 'right', 'center'):
continue
pad = rc['axes.titlepad'] / (72 * width)
pad = self._title_pad / (72 * width)
if loc in ('upper center', 'lower center'):
x = 0.5
elif loc in ('upper left', 'lower left'):
x = pad
elif loc in ('upper right', 'lower right'):
x = 1 - pad
pad = rc['axes.titlepad'] / (72 * height)
pad = self._title_pad / (72 * height)
if loc in ('upper left', 'upper right', 'upper center'):
y = 1 - pad
elif loc in ('lower left', 'lower right', 'lower center'):
Expand Down

0 comments on commit 14f3d0e

Please sign in to comment.