#NEWLINE# def yield_renderers( self ) : #NEWLINE# #INDENT# 'Generate a set fo bins for each group of data.' #NEWLINE# for group in self . _data . groupby ( ** self . attributes ) : #NEWLINE# #INDENT# binned_values = ( self . values . selection + '_values' ) #NEWLINE# comp_glyph = BinGlyph ( x = group . get_values ( self . x . selection ) , y = group . get_values ( self . y . selection ) , values = group . get_values ( binned_values ) , width = ( self . bin_width * self . spacing_ratio ) , height = ( self . bin_height * self . spacing_ratio ) , line_color = group [ 'color' ] , fill_color = comp_glyph [ 'color' ] , label = group . label ) #NEWLINE# self . add_glyph ( group , comp_glyph ) #NEWLINE# for renderer in comp_glyph . renderers : #NEWLINE# #INDENT# ( yield renderer )