Created
April 3, 2019 02:41
-
-
Save xeoncross/e8bb97e4906fa049cfe1e68ca4a45bc7 to your computer and use it in GitHub Desktop.
Simple python3 chart of list values - https://matplotlib.org
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 | |
# 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