remove graphs
This commit is contained in:
parent
6f3b00d266
commit
88c386d440
@ -40,7 +40,6 @@
|
||||
</py-config>
|
||||
<py-script output="hist">
|
||||
import pyroulette as pr
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
# seed(59)
|
||||
from random import randint
|
||||
@ -61,10 +60,7 @@ players = pr.play_roulette(players, games=100)
|
||||
# get the wallet values for all players as a list
|
||||
wallets = [player.wallet for player in players]
|
||||
# plot the wallet values as a histogram
|
||||
fig, ax = plt.subplots()
|
||||
ax.hist(wallets, bins=50)
|
||||
ax.set_yscale("log")
|
||||
fig
|
||||
|
||||
|
||||
|
||||
</py-script>
|
||||
|
Loading…
Reference in New Issue
Block a user