Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f6eee8

Browse files
committed
FIX: make title move above ticklabels
1 parent 9faf231 commit 5f6eee8

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)