Skip to content

Instantly share code, notes, and snippets.

@erikaris
Created November 5, 2017 03:46
Show Gist options
  • Save erikaris/d52cbe6c6251956714972bbf2dd11cad to your computer and use it in GitHub Desktop.
Save erikaris/d52cbe6c6251956714972bbf2dd11cad to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
plt.figure()
languages =['Python', 'SQL', 'Java', 'C++', 'JavaScript']
pos = np.arange(len(languages))
popularity = [56, 39, 34, 34, 29]
plt.bar(pos, popularity, align='center')
plt.xticks(pos, languages)
plt.ylabel('% Popularity')
plt.title('Top 5 Languages for Math & Data \nby % popularity on Stack Overflow', alpha=0.8)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment