summaryrefslogtreecommitdiff
path: root/ex_0702.py
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2022-07-22 16:40:36 +0800
committerKunoiSayami <[email protected]>2022-07-22 16:40:36 +0800
commit3c745606e9494917763313e821e3722d010e2e97 (patch)
tree48e00fe898477c2ce4bdb7c1b992e13372d1ada0 /ex_0702.py
parent3f1bd23b3432441dbaaa6499f084ffafb531ab06 (diff)
refactor: Rename files
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'ex_0702.py')
-rwxr-xr-xex_0702.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/ex_0702.py b/ex_0702.py
deleted file mode 100755
index 5ac42b0..0000000
--- a/ex_0702.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python3
-import argparse
-import os
-import subprocess
-
-import matplotlib.pyplot as plt
-
-
-def function_pdf(proc: str):
- p = subprocess.Popen([proc], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
- output, _ = p.communicate(b"1024 1024\n32768 1024\n32768 32768\n")
- p.stdin.close()
- for index in range(0, len(lines := output.splitlines()), 2):
- plt.hist(list(map(int, lines[index].split())), bins=100)
- plt.title(f"stddev: {lines[index + 1].decode()}")
- plt.show()
-
-
-if __name__ == '__main__':
- parser = argparse.ArgumentParser()
- parser.add_argument('proc')
- matches = parser.parse_args()
- function_pdf(matches.proc)