Skip to content

Instantly share code, notes, and snippets.

@nomeyer
Last active February 10, 2016 20:54
Show Gist options
  • Save nomeyer/2f5a01b345eaec738acb to your computer and use it in GitHub Desktop.
Save nomeyer/2f5a01b345eaec738acb to your computer and use it in GitHub Desktop.
Bar plot using matplotlib.pyplot.bar (where bars are already given)
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