8000 FIX: make title move above ticklabels · matplotlib/matplotlib@66e3a61 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 66e3a61

Browse files
committed
FIX: make title move above ticklabels
1 parent b8ec77c commit 66e3a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,8 +2535,8 @@ def _update_title_position(self, renderer):
25352535
top = 0
25362536
for ax in axs:
25372537
try:
2538-
if (ax.xaxis.get_label_position() == 'top'
2539-
or ax.xaxis.get_ticks_position() == 'top'):
2538+
if (ax.xaxis.get_label_position() != 'bottom'
2539+
or ax.xaxis.get_ticks_position() != 'bottom'):
25402540
bb = ax.xaxis.get_tightbbox(renderer)
25412541
else:
25422542
bb = ax.get_window_extent(renderer)

0 commit comments

Comments
 (0)
0