Skip to content

Instantly share code, notes, and snippets.

@xeoncross
Created April 3, 2019 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeoncross/e8bb97e4906fa049cfe1e68ca4a45bc7 to your computer and use it in GitHub Desktop.
Save xeoncross/e8bb97e4906fa049cfe1e68ca4a45bc7 to your computer and use it in GitHub Desktop.
Simple python3 chart of list values - https://matplotlib.org
import matplotlib.pyplot as plt
# Easy way to see a large list as a barchart for visual inspection of a numeric attribute like "size"
sizes = [1,2,3,4,5,6,4,3,2,1]
fig = plt.figure()
ax = plt.subplot(111)
ax.bar(range(len(sizes)), sizes)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment