Skip to content

Instantly share code, notes, and snippets.

@marcosan93
Created September 6, 2019 23:16
Show Gist options
  • Select an option

  • Save marcosan93/7185c6549128fc329337d027f4a3e16c to your computer and use it in GitHub Desktop.

Select an option

Save marcosan93/7185c6549128fc329337d027f4a3e16c to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
plt.style.use('ggplot')
plt.figure(figsize=(16,8))
# Plotting each strategies result
for i in results:
plt.plot(games_sim, results[i], label=i+': '+str(results[i][-1])+'%')
plt.title("Blackjack Probability \nGraph 3")
plt.ylabel("Percentage Won (also Draws)")
plt.xlabel("Games Played")
plt.ylim([50,54])
plt.xlim([0,len(games_sim)])
plt.legend()
plt.savefig("bj_3.png")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment