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

Skip to content

Commit 4d84094

Browse files
greglucasQuLogic
andauthored
Update lib/matplotlib/axes/_base.py
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 4c371d0 commit 4d84094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3005,7 +3005,7 @@ def _update_title_position(self, renderer):
30053005
if bb is None:
30063006
if 'outline' in ax.spines:
30073007
# Special case for colorbars:
3008-
bb = self.axes.spines['outline'].get_window_extent()
3008+
bb = ax.spines['outline'].get_window_extent()
30093009
else:
30103010
bb = ax.get_window_extent(renderer)
30113011
top = max(top, bb.ymax)

0 commit comments

Comments
 (0)