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

Skip to content

Commit 707d8a2

Browse files
committed
FIX: ax
1 parent 6e493b0 commit 707d8a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2977,7 +2977,7 @@ def _update_title_position(self, renderer):
29772977
if bb is None:
29782978
if 'outline' in ax.spines:
29792979
# Special case for colorbars:
2980-
bb = self.axes.spines['outline'].get_window_extent()
2980+
bb = ax.spines['outline'].get_window_extent()
29812981
else:
29822982
bb = ax.get_window_extent(renderer)
29832983
top = max(top, bb.ymax)

tutorials/introductory/quick_start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def my_plotter(ax, data1, data2, param_dict):
505505

506506
pc = axs[1, 1].scatter(data1, data2, c=data3, cmap='RdBu_r')
507507
fig.colorbar(pc, ax=axs[1, 1], extend='both')
508-
axs[1, 1].set_title('scatter()');
508+
axs[1, 1].set_title('scatter()')
509509

510510
##############################################################################
511511
# Colormaps

0 commit comments

Comments
 (0)