51696521c68b6a1b9af2e05eee4df944981daf5a,ggplot/geoms/geom_bar.py,geom_bar,_plot_unit,#geom_bar#Any#Any#,17
Before Change
labels = sorted(labels)
pinfo["edgecolor"] = pinfo.pop("color", "/")
pinfo["color"] = pinfo.pop("fill", "/")
ax.bar(indentation, weights, width, **pinfo)
ax.autoscale()
ax.set_xticks(indentation+width/2)
After Change
// mapped coloring aesthetics are required in ascending order acc. x
for ae in ("edgecolor", "facecolor"):
if isinstance(pinfo[ae], list):
pinfo[ae] = [color for _, color in
sorted(set(zip(x, pinfo[ae])))]
ax.bar(indentation, weights, width, **pinfo)
ax.autoscale()
ax.set_xticks(indentation+width/2)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: has2k1/plotnine
Commit Name: 51696521c68b6a1b9af2e05eee4df944981daf5a
Time: 2014-03-30
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_bar.py
Class Name: geom_bar
Method Name: _plot_unit
Project Name: oddt/oddt
Commit Name: c7a6a8b41c83f82200971ef8470dbc439c19c7a9
Time: 2017-11-23
Author: maciek@wojcikowski.pl
File Name: oddt/toolkits/extras/rdkit.py
Class Name:
Method Name: MolToPDBQTBlock
Project Name: has2k1/plotnine
Commit Name: a7024416e4ff05722bc2bcee0c2771933899dfe3
Time: 2014-03-30
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_area.py
Class Name: geom_area
Method Name: plot_layer