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))