288f7fe709e1f44b01450ac53e084e9ea627c4e0,librosa/display.py,,__axis_log,#,414

Before Change


    t_log, t_inv = __log_scale(n)

    if horiz:
        args = (t_log, np.linspace(0, data.shape[0], data.shape[0], dtype=int),
                data)
    else:
        args = (np.linspace(0, data.shape[1], data.shape[1], dtype=int),
                t_log, data)

    im_phantom = img.NonUniformImage(axes_phantom,
                                     extent=(args[0].min(), args[0].max(),
                                             args[1].min(), args[1].max()),
                                     **kwargs)

After Change


    t_log, t_inv = __log_scale(n)

    if horiz:
        args = (t_log, np.linspace(0, data.shape[0], data.shape[0]).astype(int),
                data)
    else:
        args = (np.linspace(0, data.shape[1], data.shape[1]).astype(int),
                t_log, data)

    im_phantom = img.NonUniformImage(axes_phantom,
                                     extent=(args[0].min(), args[0].max(),
                                             args[1].min(), args[1].max()),
                                     **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: librosa/librosa
Commit Name: 288f7fe709e1f44b01450ac53e084e9ea627c4e0
Time: 2015-02-12
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: __axis_log


Project Name: librosa/librosa
Commit Name: 288f7fe709e1f44b01450ac53e084e9ea627c4e0
Time: 2015-02-12
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: __axis_mel