Skip to content

Instantly share code, notes, and snippets.

@phaustin
Created February 17, 2015 01:11
Show Gist options
  • Save phaustin/8fe7a9f44078d3f7f92a to your computer and use it in GitHub Desktop.
Save phaustin/8fe7a9f44078d3f7f92a to your computer and use it in GitHub Desktop.
barplot and histogram
fig, ax = plt.subplots(1, 1, figsize = (12, 12) )
height,bins=np.histogram(group,bins=marks,normed=True)
out = ax.bar(bins[:-1],height*len(group),width=np.diff(bins))
ax.set_title('group')
ax.set_xlim([60,100])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment