Skip to content

Instantly share code, notes, and snippets.

@cavedave
Last active September 10, 2020 09:21
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 cavedave/aecc268186576ea57cb7143bbf1610bb to your computer and use it in GitHub Desktop.
Save cavedave/aecc268186576ea57cb7143bbf1610bb to your computer and use it in GitHub Desktop.
Git to make a picture of American president executive orders as shown at https://i.imgur.com/JSDa5Oh.png
#Average Confidence at 1 in each sprint
import matplotlib.pyplot as plt
import matplotlib
import numpy as np
objects = (','Truman','Eisenhower','Kennedy','Johnson','Nixon','Ford','Carter','Reagan','Bush','Clinton','G. W. Bush','Obama','Trump')
#'FDR', 0.796,
y_pos = np.arange(len(objects))
performance = [0.319,0.165,0.206,0.172,0.170,0.188,0.219,0.130,0.113,0.105,0.099,0.094,0.133]
plt.bar(y_pos, performance, align='center', alpha=0.5,color=['#0015BC', '#E9141D', '#0015BC', '#0015BC', '#E9141D', '#E9141D', '#0015BC', '#E9141D', '#E9141D', '#0015BC', '#E9141D', '#0015BC','#E9141D'])
#republican '#E91D0E'
#democrat '#232066'
plt.xticks(y_pos, objects, rotation='vertical')
plt.ylabel('Number')
plt.xlabel('Presidents')
plt.title('Executive Orders per Day')
plt.savefig('ExecutiveOrdersPartyOld.png', bbox_inches='tight')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment