d695f661f194ba222386ac4848ac259814de3e49,ggplot/geoms/geom_hline.py,geom_hline,_plot_unit,#geom_hline#Any#Any#,15

Before Change


    def _plot_unit(self, pinfo, ax):
        pinfo["label"] = self.params["label"]
        pinfo["label"] = self.params["label"]
        if isinstance(pinfo["y"], list):
            ys = pinfo["y"]
            for y in ys:
                pinfo["y"] = y
                ax.axhline(**pinfo)
        else:
            ax.axhline(**pinfo)

After Change



    def _plot_unit(self, pinfo, ax):
        pinfo["label"] = self.params["label"]
        try:
            xmin = pinfo.pop("xmin")
        except KeyError:
            xmin, _ = ax.get_xlim()
        try:
            xmax = pinfo.pop("xmax")
        except KeyError:
            _, xmax = ax.get_xlim()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: has2k1/plotnine
Commit Name: d695f661f194ba222386ac4848ac259814de3e49
Time: 2014-04-29
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_hline.py
Class Name: geom_hline
Method Name: _plot_unit


Project Name: has2k1/plotnine
Commit Name: d695f661f194ba222386ac4848ac259814de3e49
Time: 2014-04-29
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_vline.py
Class Name: geom_vline
Method Name: _plot_unit


Project Name: ray-project/ray
Commit Name: 92c2e41dfdb30756a5872578b38b34cd34722d76
Time: 2020-05-24
Author: dooku.wt@antfin.com
File Name: python/ray/state.py
Class Name: GlobalState
Method Name: profile_table