6bb9a5f8e0b28d2cff41d0e1f56544fc8334beb4,librosa/display.py,,specshow,#,10

Before Change


        raise ValueError("Unknown y_axis parameter: %s" % y_axis)

    // Set up the x ticks
    x_pos = np.arange(0, X.shape[1]+1, max(1, X.shape[1] / (n_yticks-1)))

    if x_axis is "time":
        // Reformat into seconds, or minutes:seconds

After Change


        raise ValueError("Unknown y_axis parameter: %s" % y_axis)

    // Set up the x ticks
    x_pos = np.linspace(0, X.shape[1], n_xticks).astype(int)

    if x_axis is "time":
        // Reformat into seconds, or minutes:seconds
        x_val = x_pos * (hop_length / np.float(sr))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


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


Project Name: craffel/mir_eval
Commit Name: 0d78d2a33bb152be3ba5d49dad3433472b0cf9f1
Time: 2014-04-15
Author: brm2132@columbia.edu
File Name: mir_eval/boundary.py
Class Name:
Method Name: detection


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