Skip to content

Commit

Permalink
Switch to plotille
Browse files Browse the repository at this point in the history
  • Loading branch information
radiantly committed Nov 4, 2022
1 parent f66fe37 commit fe6b6da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/test_udp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from time import perf_counter

import pandas as pd
import plotext as plt
import plotille

# Configuration options
PACKETS_TO_SEND = 1000
Expand Down Expand Up @@ -53,10 +53,8 @@ def main():
f"\r{i}/{PACKETS_TO_SEND} packets sent (failures: {failures})", flush=True, end=""
)

print()

plt.hist(rtt, bins=10)
plt.show()
print("\r", end="")
print(plotille.hist(rtt, bins=10))

print(f"{failures} failures")
print(pd.Series(rtt).describe())
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:

- run: |
python3 -V
python3 -m pip install pandas plotext
python3 -m pip install pandas plotille
python3 .github/test_udp.py udpquiz.com

0 comments on commit fe6b6da

Please sign in to comment.