summaryrefslogtreecommitdiff
path: root/backup/old/xyz.py
diff options
context:
space:
mode:
authorbicker <bickerkards@gmail.com>2017-06-14 14:34:17 +0200
committerbicker <bickerkards@gmail.com>2017-06-14 14:34:17 +0200
commit9a3b2702bbcbd67eab592b043b7dcd50b48afe3b (patch)
tree36738aecfc47f3ace6e29f1d5ec724b1a4d8e92a /backup/old/xyz.py
first commit
Diffstat (limited to 'backup/old/xyz.py')
-rw-r--r--backup/old/xyz.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/backup/old/xyz.py b/backup/old/xyz.py
new file mode 100644
index 0000000..f83dec2
--- /dev/null
+++ b/backup/old/xyz.py
@@ -0,0 +1,10 @@
+import matplotlib.pyplot as plt
+import json
+
+f = open('list04', 'r')
+data = json.loads(f.read())
+
+plt.bar(range(len(data)), [len(i) for i in data.values()], align='center')
+plt.xticks(range(len(data)), data.keys(),rotation=90)
+
+plt.savefig('img', dpi=1000)