6d60be3b73b0ef4e1353747eb8be4a9d904d34ba,bokeh/charts/builder/bar_builder.py,BarBuilder,_yield_renderers,#BarBuilder#,206
Before Change
colors = cycle_colors(quartets, self.palette)
// quartet elements are: [data, mid, stacked, cat]
for i, quartet in enumerate(quartets):
if self.stacked:
glyph = Rect(
x="cat", y=quartet[2],
width="width", height=quartet[0],
fill_color=colors[i], fill_alpha=0.7,
line_color="white"
)
else: // Grouped
glyph = Rect(
x=quartet[3], y=quartet[1],
width="width_cat", height=quartet[0],
fill_color=colors[i], fill_alpha=0.7,
line_color="white"
)
renderer = GlyphRenderer(data_source=self._source, glyph=glyph)
self.legends.append((self._groups[i], [renderer]))
yield renderer
After Change
agg=self.agg).renderers
// a higher level function of bar chart is to keep track of max height of all bars
self.max_height = max(max(renderer.data_source._data["height"]), self.max_height)
self._legends.append((str(group.label), [renderer]))
yield renderer
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: bokeh/bokeh
Commit Name: 6d60be3b73b0ef4e1353747eb8be4a9d904d34ba
Time: 2015-08-23
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/bar_builder.py
Class Name: BarBuilder
Method Name: _yield_renderers
Project Name: r9y9/deepvoice3_pytorch
Commit Name: 96ecbdba66058274e2ceb9f58261daa4a45eb873
Time: 2019-12-21
Author: zryuichi@gmail.com
File Name: deepvoice3_pytorch/modules.py
Class Name:
Method Name: get_mask_from_lengths
Project Name: rtavenar/tslearn
Commit Name: 0537b722ea3bd3740ebb53226214cd67d92f2913
Time: 2019-05-28
Author: johann.faouzi@icm-institute.org
File Name: tslearn/metrics.py
Class Name:
Method Name: itakura_mask