4ace574968a1001c80b1689239d767f9e4497d78,bokeh/charts/builder/scatter_builder.py,ScatterBuilder,_yield_renderers,#ScatterBuilder#,125

Before Change


        duplets = list(chunk(self._attr, 2))
        colors = cycle_colors(duplets, self.palette)

        for i, duplet in enumerate(duplets, start=1):
            renderer = make_scatter(
                self._source, duplet[0], duplet[1], self.marker, colors[i - 1]
            )
            self.legends.append((self._groups[i-1], [renderer]))
            yield renderer

After Change



        for group in self._data.groupby(color, marker):

            glyph = scatter_glyph(self._data["x"], self._data["y"],
                                  line_color=group["color"], fill_color=group["color"],
                                  marker=group["marker"])

            yield GlyphRenderer(data_source=group.source, glyph=glyph)

            //self.legends.append((self._groups[i-1], [renderer]))
            //yield renderer
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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: chakki-works/doccano
Commit Name: 49d41416e440926f0a9a8243b4d77f6f5468efe9
Time: 2019-03-12
Author: light.tree.1.13@gmail.com
File Name: app/server/utils.py
Class Name: JsonHandler
Method Name: parse


Project Name: brainiak/brainiak
Commit Name: 917cfa8c9107c3e79b36fa9cce0218b732b3d234
Time: 2017-04-25
Author: mihai@mihaic.ro
File Name: brainiak/image.py
Class Name:
Method Name: multimask_images