def yield_renderers(self):
        for group in self._data.groupby(**self.attributes):

            binned_values = self.values.selection + '_values'
            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=group['color'],
                                  label=group.label
                                  )

            self.add_glyph(group, comp_glyph)

            # yield the renderers from the comp glyph
            for renderer in comp_glyph.renderers:
                yield renderer
Generate a set fo bins for each group of data.
dataset/ETHPy150Open bokeh/bokeh/bokeh/charts/builders/heatmap_builder.py/HeatMapBuilder.yield_renderers