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

Skip to content

Commit 597b36c

Browse files
committed
axes3d's set_title sould return the Text object
1 parent e817941 commit 597b36c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,9 +2361,10 @@ def bar3d(self, x, y, z, dx, dy, dz, color='b',
23612361
self.auto_scale_xyz((minx, maxx), (miny, maxy), (minz, maxz), had_data)
23622362

23632363
def set_title(self, label, fontdict=None, loc='center', **kwargs):
2364-
Axes.set_title(self, label, fontdict=fontdict, loc=loc, **kwargs)
2364+
ret = Axes.set_title(self, label, fontdict=fontdict, loc=loc, **kwargs)
23652365
(x, y) = self.title.get_position()
23662366
self.title.set_y(0.92 * y)
2367+
return ret
23672368
set_title.__doc__ = maxes.Axes.set_title.__doc__
23682369

23692370
def get_test_data(delta=0.05):

0 commit comments

Comments
 (0)