a6e3f06dff54fe4f34bf02a81e53852fa95b227d,bokeh/charts/builder/bar_builder.py,BarGlyph,__dodge__,#BarGlyph#Any#,147
Before Change
for index, group in groups.iteritems():
group = sorted(group, key=lambda x: x.source._data["y"][0])
shift = []
for i, bar in enumerate(group):
// save off the top of each rect"s height
shift.append(group[i].source._data["y"][0] * 2)
if i > 0:
// bar.source._data["y"] = group[i].source._data["y"] + sum(shift[0:i])
pass
@property
def xmax(self):
return self.source._data["x"][0] + self.width
After Change
step = np.linspace(0, 1.0, len(groups.keys()) + 1, endpoint=False)
width = min(0.2, (1. / len(groups.keys())) ** 1.1)
for i, (index, group) in enumerate(groups.iteritems()):
for bar in group:
bar.source._data["x"][0] = bar.source._data["x"][0] + ":" + str(step[i + 1])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: bokeh/bokeh
Commit Name: a6e3f06dff54fe4f34bf02a81e53852fa95b227d
Time: 2015-08-30
Author: nroth@dealnews.com
File Name: bokeh/charts/builder/bar_builder.py
Class Name: BarGlyph
Method Name: __dodge__
Project Name: IndicoDataSolutions/Enso
Commit Name: 7f46b2274cb8958441b1236e8fd7ac39d546a732
Time: 2017-12-13
Author: maritza@mylestone.com
File Name: enso/sample/__init__.py
Class Name: KCenter
Method Name: sample
Project Name: bokeh/bokeh
Commit Name: 2f045e23607f4660d3920d6a91e322311516d6d6
Time: 2017-03-29
Author: jsignell@gmail.com
File Name: examples/plotting/file/unemployment.py
Class Name:
Method Name:
Project Name: automl/SMAC3
Commit Name: 2402c8a3c28f5c6faf9931fe97b6516b7c426edb
Time: 2016-02-12
Author: lindauer@cs.uni-freiburg.de
File Name: smac/smbo/intensification.py
Class Name: Intensifier
Method Name: intensify