Last active
August 17, 2022 20:09
-
-
Save JarrydWannenburg/9f1639993daac1a8778a2ad3f272d053 to your computer and use it in GitHub Desktop.
Easiest_python_visualization
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; 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