ded044ebee429e8e1b8dbd7e581bfb9634be7354,bokeh/charts/builder/line_builder.py,LineBuilder,_yield_renderers,#LineBuilder#,130

Before Change


        Takes reference points from the data loaded at the ColumnDataSource.
        
        colors = cycle_colors(self._attr, self.palette)
        for i, duplet in enumerate(self._attr[1:], start=1):
            glyph = LineGlyph(x="x", y=duplet, line_color=colors[i - 1])
            renderer = GlyphRenderer(data_source=self._source, glyph=glyph)
            self.legends.append((self._groups[i-1], [renderer]))
            yield renderer

After Change


                                             data=ColumnDataSource(self._data.df))

    def _yield_renderers(self):
        for group in self._data.groupby(**self.attributes):
            glyph = LineGlyph(x=group.get_values(self.x.selection),
                              y=group.get_values(self.y.selection),
                              line_color=group["color"],
                              dash=group["dash"])
            renderer = glyph.renderers[0]
            self._legends.append((str(group.label), [renderer]))

            yield renderer
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: bokeh/bokeh
Commit Name: ded044ebee429e8e1b8dbd7e581bfb9634be7354
Time: 2015-09-08
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/line_builder.py
Class Name: LineBuilder
Method Name: _yield_renderers


Project Name: bokeh/bokeh
Commit Name: 4ace574968a1001c80b1689239d767f9e4497d78
Time: 2015-08-14
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/scatter_builder.py
Class Name: ScatterBuilder
Method Name: _yield_renderers


Project Name: mittagessen/kraken
Commit Name: 6e6c12425a787d8c954ce5c31ceed59cdd531001
Time: 2018-05-20
Author: mittagessen@l.unchti.me
File Name: kraken/lib/ctc_decoder.py
Class Name:
Method Name: greedy_decoder