Created
February 17, 2015 01:11
-
-
Save phaustin/8fe7a9f44078d3f7f92a to your computer and use it in GitHub Desktop.
barplot and histogram
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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