0817e41d3d104da9a8e4ffb84d12fd72e5687434,spectral/graphics/spypylab.py,,plot,#Any#Any#,1268

Before Change


    else:
        xvals = None

    if len(s) == 1:
        if not xvals:
            xvals = list(range(len(data)))
        p = plt.plot(xvals, data)
    elif len(s) == 2:
        if not xvals:
            xvals = list(range(s[1]))
        p = plt.plot(xvals, data[0, :])
        plt.hold(1)
        for i in range(1, s[0]):
            p = plt.plot(xvals, data[i, :])
    spectral._xyplot = p
    plt.grid(1)
    if source is not None and hasattr(source, "bands"):
        if source.bands.band_quantity is not None:

After Change



    if data.ndim == 1:
        data = data[np.newaxis, :]
    data = data.reshape(-1, data.shape[-1])
    if source is not None and hasattr(source, "metadata") and \
       "bbl" in source.metadata:
        // Do not plot bad bands
        data = np.array(data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: spectralpython/spectral
Commit Name: 0817e41d3d104da9a8e4ffb84d12fd72e5687434
Time: 2017-03-26
Author: thomas.boggs@gmail.com
File Name: spectral/graphics/spypylab.py
Class Name:
Method Name: plot


Project Name: scikit-learn-contrib/DESlib
Commit Name: ea25f7ad99ec6c6a4dc0b9eba04c09c1421ef007
Time: 2018-03-26
Author: rafaelmenelau@gmail.com
File Name: deslib/des/knora_e.py
Class Name: KNORAE
Method Name: select


Project Name: scikit-learn-contrib/DESlib
Commit Name: cd1a5446ce793d09f28d021c466a279301eb51f0
Time: 2018-04-01
Author: rafaelmenelau@gmail.com
File Name: deslib/des/meta_des.py
Class Name: METADES
Method Name: select