43315379ec273c4c20df764ffc7a5cc004a5943f,mne/viz/raw.py,,_plot_raw_traces,#Any#Any#Any#Any#Any#,728

Before Change



            // clip to range (if relevant)
            if params["clipping"] == "transparent":
                this_data[np.abs(this_data) > 1] = np.nan
            elif params["clipping"] == "clamp":
                np.clip(this_data, -1, 1, out=this_data)

After Change


            // clip to range (if relevant)
            if params["clipping"] == "clamp":
                np.clip(this_data, -1, 1, out=this_data)
            elif params["clipping"] is not None:
                l, w = this_t[0], this_t[-1] - this_t[0]
                ylim = params["ax"].get_ylim()
                b = offset - params["clipping"]  // max(, ylim[0])
                h = 2 * params["clipping"]  // min(, ylim[1] - b)
                assert ylim[1] <= ylim[0]  // inverted
                b = max(b, ylim[1])
                h = min(h, ylim[0] - b)
                rect = Rectangle((l, b), w, h, transform=ax.transData)
                lines[ii].set_clip_path(rect)

            // subtraction here gets correct orientation for flipped ylim
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mne-tools/mne-python
Commit Name: 43315379ec273c4c20df764ffc7a5cc004a5943f
Time: 2020-04-22
Author: larson.eric.d@gmail.com
File Name: mne/viz/raw.py
Class Name:
Method Name: _plot_raw_traces


Project Name: biocore/scikit-bio
Commit Name: 502e6a7642e4b67d1bac3b73a6cf9aa6d162dcb0
Time: 2014-02-12
Author: jorgecanardo@gmail.com
File Name: bipy/maths/stats/ordination/principal_coordinate_analysis.py
Class Name: PCoA
Method Name: _pcoa


Project Name: scipy/scipy
Commit Name: 45d980c8d1adf474bdf0872a98e761136acde314
Time: 2015-02-08
Author: mclee@aftercollege.com
File Name: scipy/sparse/linalg/_norm.py
Class Name:
Method Name: norm