Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active Mar 26, 2020
Embed
What would you like to do?
#importing library
from collections import Counter
#computing frequency of each note
freq = dict(Counter(notes_))
#library for visualiation
import matplotlib.pyplot as plt
#consider only the frequencies
no=[count for _,count in freq.items()]
#set the figure size
plt.figure(figsize=(5,5))
#plot
plt.hist(no)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment