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