Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def histogram(data, n_bins, cumulative=False, x_label = "", y_label = "", title = ""):
_, ax = plt.subplots()
ax.hist(data, n_bins = n_bins, cumulative = cumulative, color = '#539caf')
ax.set_ylabel(y_label)
ax.set_xlabel(x_label)
ax.set_title(title)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment