Skip to content

Commit 24886a0

Browse files
committed
Change return value to _GroupedBarReturn
1 parent bbcbc7c commit 24886a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3353,7 +3353,7 @@ def grouped_bar(self, heights, *, positions=None, group_spacing=1.5, bar_spacing
33533353

33543354
# place the bars, but only use numerical positions, categorical tick labels
33553355
# are handled separately below
3356-
result = []
3356+
bar_containers = []
33573357
for i, (hs, label, color) in enumerate(
33583358
zip(heights, labels, colors)):
33593359
lefts = (group_centers - 0.5 * group_distance + margin_abs
@@ -3364,15 +3364,15 @@ def grouped_bar(self, heights, *, positions=None, group_spacing=1.5, bar_spacing
33643364
else:
33653365
bc = self.barh(lefts, hs, height=bar_width, align="edge",
33663366
label=label, color=color, **kwargs)
3367-
result.append(bc)
3367+
bar_containers.append(bc)
33683368

33693369
if tick_labels is not None:
33703370
if orientation == "vertical":
33713371
self.xaxis.set_ticks(group_centers, labels=tick_labels)
33723372
else:
33733373
self.yaxis.set_ticks(group_centers, labels=tick_labels)
33743374

3375-
return result
3375+
return _GroupedBarReturn(bar_containers)
33763376

33773377
@_preprocess_data()
33783378
def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,

0 commit comments

Comments
 (0)