Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873057c commit b4a1a97Copy full SHA for b4a1a97
1 file changed
lib/matplotlib/axes/_base.py
@@ -2535,8 +2535,9 @@ def _update_title_position(self, renderer):
2535
top = 0
2536
for ax in axs:
2537
try:
2538
- if (ax.xaxis.get_label_position() != 'bottom'
2539
- or ax.xaxis.get_ticks_position() != 'bottom'):
+ choices = ['top', 'unknown']
+ if (ax.xaxis.get_label_position() == 'top' or
2540
+ ax.xaxis.get_ticks_position() in choices):
2541
bb = ax.xaxis.get_tightbbox(renderer)
2542
else:
2543
bb = ax.get_window_extent(renderer)
0 commit comments