Skip to content

Instantly share code, notes, and snippets.

@psd
Last active June 10, 2025 08:52
Show Gist options
  • Select an option

  • Save psd/2b3a5430bd37501fafba1d0b701d8c15 to your computer and use it in GitHub Desktop.

Select an option

Save psd/2b3a5430bd37501fafba1d0b701d8c15 to your computer and use it in GitHub Desktop.
My Waffle scores chart
{40: 858, 41: 873, 42: 888, 43: 903, 44: 919, 45: 936, 46: 953, 47: 971, 48: 989, 49: 1008, 50: 1028, 51: 1049}
1060 +--------------------------------------------------------------------+
| ** |
1040 | ** |
| *** |
1020 | *** |
| *** |
1000 | *** |
| ***** |
980 | **** |
| ** |
960 | *** |
940 | *** |
| ***** |
920 | **** |
| *** |
900 | **** |
| **** |
880 | *** |
| ***** |
860 |** |
| |
840 +--------------------------------------------------------------------+
40 42 44 46 48 50 52
import termplotlib as tpl
played = 846
five = 327
last = 0
last_played = played
x = []
y = []
while True:
percent = round(five / played * 100)
if last:
if percent > last:
#print(percent, five, played, played - last_played)
last_played = played
x.append(percent)
y.append(played)
last = percent
if percent > 50:
break
played += 1
five += 1
print(dict(zip(x, y)))
fig = tpl.figure()
fig.plot(x, y)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment