librosa.display.specshow has grids in its plots?

155 views
Skip to first unread message

Carlton Banks

unread,
Apr 26, 2017, 9:12:22 PM4/26/17
to librosa
I am currently making plots with librosa, and for some reason are grids appearing in the dataset?...



librosa.display.specshow(interweaved.T,sr=16000,x_axis='frames',y_axis='mel',hop_length=160,cmap=cm.jet)
    plt
.title("log mel power spectrum of interweaved " + name)
    plt
.colorbar(format='%+02.0f dB')
    ax
.grid(false)
    plt
.savefig(plot+"/"+name+"_plot_interweaved_conv.png")
    plt
.show()
    plt
.close()


This is the plots it saves: 



Brian McFee

unread,
Apr 27, 2017, 8:21:15 AM4/27/17
to librosa
Those are due to matplotlib settings, not librosa.  Do you have axes.grid set in your matplotlib rc, by chance?  Or are you using a style (or seaborn) that enables grid lines by default?

Reply all
Reply to author
Forward
0 new messages