Last active
June 10, 2025 08:52
-
-
Save psd/2b3a5430bd37501fafba1d0b701d8c15 to your computer and use it in GitHub Desktop.
My Waffle scores chart
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
| {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 |
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 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