Created
September 6, 2019 23:16
-
-
Save marcosan93/7185c6549128fc329337d027f4a3e16c to your computer and use it in GitHub Desktop.
This file contains hidden or 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.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