b9a5f7d2bf056e397ee527425c41d214265ca59c,librosa/display.py,,specshow,#,10

Before Change


        plt.ylabel("Hz")
    
    elif y_axis is "log":
        y_val       = 0.5 * sr * (2.0**np.arange(0, -len(y_pos), -1)[::-1])
        y_val[0]    = 0.0
        plt.yticks(y_pos, y_val.astype(int))
        plt.ylabel("Hz")
    

After Change


    
    elif y_axis is "log":
    
        y_val = np.linspace(0, 0.5 * sr,  X.shape[0] + 1).astype(int)
        plt.yticks(y_pos, y_val[y_inv[y_pos]])
    
        plt.ylabel("Hz")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: librosa/librosa
Commit Name: b9a5f7d2bf056e397ee527425c41d214265ca59c
Time: 2013-11-14
Author: brm2132@columbia.edu
File Name: librosa/display.py
Class Name:
Method Name: specshow


Project Name: PIQuIL/QuCumber
Commit Name: 51321f39fcc1698c011d2f0351474cdec1707a47
Time: 2019-12-20
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/training_statistics.py
Class Name:
Method Name: NLL


Project Name: sebp/scikit-survival
Commit Name: 262e19a4983a6d55de4c779137b94c1f43e2d9dc
Time: 2019-02-26
Author: sebp@k-d-w.org
File Name: tests/test_minlip.py
Class Name:
Method Name: toy_data