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

Skip to content

Commit 141d485

Browse files
committed
Merge pull request matplotlib#4494 from jeremyfix/patch-1
FIX/API: Returning the Poly3DCollection when calling bar3d
1 parent 5aa638f commit 141d485

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,6 +2423,8 @@ def bar3d(self, x, y, z, dx, dy, dz, color='b',
24232423
self.add_collection(col)
24242424

24252425
self.auto_scale_xyz((minx, maxx), (miny, maxy), (minz, maxz), had_data)
2426+
2427+
return col
24262428

24272429
def set_title(self, label, fontdict=None, loc='center', **kwargs):
24282430
ret = Axes.set_title(self, label, fontdict=fontdict, loc=loc, **kwargs)

0 commit comments

Comments
 (0)