4ace574968a1001c80b1689239d767f9e4497d78,bokeh/charts/builder/scatter_builder.py,ScatterBuilder,_yield_renderers,#ScatterBuilder#,125
Before Change
Takes reference points from data loaded at the ColumnDataSource.
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
color = color_spec(self._data.df, cols=self.color, palette=self.palette)
marker = AttrSpec(self._data.df, columns=self.marker, default="circle",
attribute="marker", iterable=marker_types.keys())
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
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: pantsbuild/pants
Commit Name: 05d6ff5b4ef75c31fdc68644d02bc70cffd54005
Time: 2016-08-16
Author: lahosken@gmail.com
File Name: src/python/pants/help/build_dictionary_info_extracter.py
Class Name: BuildDictionaryInfoExtracter
Method Name: _get_args_for_target_type
Project Name: uber/petastorm
Commit Name: 7459ce340e207f1764cf8bd94afe15bed6196fa8
Time: 2019-08-27
Author: yevgeni@uber.com
File Name: petastorm/pytorch.py
Class Name: DataLoader
Method Name: __iter__