Skip to content

Instantly share code, notes, and snippets.

@JarrydWannenburg
Last active August 17, 2022 20:09
Show Gist options
  • Save JarrydWannenburg/9f1639993daac1a8778a2ad3f272d053 to your computer and use it in GitHub Desktop.
Save JarrydWannenburg/9f1639993daac1a8778a2ad3f272d053 to your computer and use it in GitHub Desktop.
Easiest_python_visualization
import matplotlib.pyplot as plt; plt.rcdefaults()
import numpy as np
import matplotlib.pyplot as plt
objects = ('Python', 'C++', 'Java', 'Perl', 'Scala', 'Lisp')
y_pos = np.arange(len(objects))
performance = [10,8,6,4,2,1]
plt.bar(y_pos, performance, align='center', alpha=0.5)
plt.xticks(y_pos, objects)
plt.ylabel('Usage')
plt.xlabel('Language')
plt.title('Programming language usage')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment