Last active
February 10, 2016 20:54
-
-
Save nomeyer/2f5a01b345eaec738acb to your computer and use it in GitHub Desktop.
Bar plot using matplotlib.pyplot.bar (where bars are already given)
This file contains 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
import matplotlib.pyplot as plt | |
bars = [3, 6, 2, 4] | |
plt.figure(figsize=(10, 5)) | |
plt.bar(range(len(bars)), bars, align='center') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment