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

Skip to content

Commit 3f13204

Browse files
committed
FIX: ax
1 parent 4c371d0 commit 3f13204

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
@@ -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)

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)