a7024416e4ff05722bc2bcee0c2771933899dfe3,ggplot/geoms/geom_area.py,geom_area,plot_layer,#geom_area#Any#Any#,10

Before Change


    VALID_AES = ["x", "ymin", "ymax", "color", "alpha", "label"]

    def plot_layer(self, layer, ax):
        layer = dict((k, v) for k, v in layer.items() if k in self.VALID_AES)
        layer.update(self.manual_aes)
        x = layer.pop("x")
        y1 = layer.pop("ymin")
        y2 = layer.pop("ymax")
        ax.fill_between(x, y1, y2, **layer)

After Change


    VALID_AES = ["x", "ymin", "ymax", "color", "alpha", "label"]

    def plot_layer(self, data, ax):
        groups = {"color", "alpha"}
        groups = groups & set(data.columns)
        if groups:
            for name, _data in data.groupby(list(groups)):
                _data = _data.to_dict("list")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


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


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: 1ce9211b9a1b349485c754d2dd3b03078f350fc8
Time: 2020-03-15
Author: yutaro.iiyama@cern.ch
File Name: hls4ml/writer/vivado_writer.py
Class Name: VivadoWriter
Method Name: write_parameters


Project Name: snorkel-team/snorkel
Commit Name: 19ae606b4608957335ce16b8bd2a9bd2ecd7e098
Time: 2016-07-01
Author: ajratner@gmail.com
File Name: tutorial/load_dictionaries.py
Class Name:
Method Name: load_acronym_dictionary


Project Name: pantsbuild/pants
Commit Name: 43ffe73ada2fcbc2571172193c30b906d2de944f
Time: 2019-12-21
Author: blorente@users.noreply.github.com
File Name: src/python/pants/backend/project_info/tasks/export_dep_as_jar.py
Class Name: ExportDepAsJar
Method Name: _process_target