09fb46dc98b3da44293a8f387bc848e3055c1947,ggplot/geoms/geom_line.py,geom_line,draw,#Any#Any#Any#,12

Before Change



    @staticmethod
    def draw(pinfo, scales, ax, **kwargs):
        x = pinfo.pop("x")
        y = pinfo.pop("y")

        idx = np.argsort(x)
        pinfo["x"] = [x[i] for i in idx]

After Change


        idx = np.argsort(pinfo["x"])
        n = len(idx)
        for param in pinfo:
            if (isinstance(pinfo[param], list) and len(pinfo[param]) == n):
                pinfo[param] = [pinfo[param][i] for i in idx]

        geom_path.draw(pinfo, scales, ax, **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: has2k1/plotnine
Commit Name: 09fb46dc98b3da44293a8f387bc848e3055c1947
Time: 2015-05-18
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_line.py
Class Name: geom_line
Method Name: draw


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: has2k1/plotnine
Commit Name: 23e7d20abbcec065a63c0ec31f5dcca481f41615
Time: 2018-06-26
Author: has2k1@gmail.com
File Name: plotnine/aes.py
Class Name:
Method Name: rename_aesthetics


Project Name: analysiscenter/batchflow
Commit Name: 1e05cf469de2a71529d5f6ce922a37e0a386c987
Time: 2019-07-12
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/tf/encoder_decoder.py
Class Name: EncoderDecoder
Method Name: body